// Program: Deming_TX_from_raw.do
// Programmer: Sarah Cohodes

// Basic set up
clear all
mat drop _all
set more off, perm
set scheme s2color
set matsize 2000
cap log close
set seed 1908709

***********************************************************************
***********************************************************************
***********************************************************************
** This program runs all of the set up and analysis for 
** Deming, Cohodes, Jennings and Jencks
**
** It calls only on file from the raw files at the ERC, so should be
** able to be run by any researcher.
**
** The reseracher will need to set up a directory in their folder at the
** ERC, with the following structure:
**
** Main folder: Deming
** Sub folder: Deming\data
** Sub folder: Deming\output
** Sub folder: Deming\output\toferpa
**
** The data directory is going to be a total mess. Don't worry about it.
** I try to use tempfiles whenever possible, but this is not always possible.
**
** The directory should be set to the main folder and is the first command 
** in the program below.
**
** By default, all switches are set to on ("1") but the researcher
** can run only part of the program by setting some switches to off
** ("0"). However, data set up parts of the program must be run first.
**
**
***********************************************************************
***********************************************************************
***********************************************************************
***********************************************************************

**************************** 
** SET DIRECTORY HERE
*************************
cd "O:\projects\LTSO\Sarah\Deming\"
*global source "O:\data\tsp_erc\"

*UPDATED SOURCE DATA DIRECTORY
global source "O:\data\project_data\data_047_LTSO\"
** all else will be called on with either absolute references to 
** ERC source files or relative references to created files
** set to run locally, but this should work if you change the directory to the server

****SWITCHES FOR MAIN PROGRAM*************
global build_out 	0 	// build outcomes, set up sample
global setup 		0	// set up analysis file
global analysisAug2013 1  // run tables that correspond to August 2013 version of the paper
global analysisNov2014	0	// run analysis for November 2014 R&R additional results
global analysisNov2014_part2 0 // more analysis

*GLOBALS FOR OUTCOMES AND COMPILING
global xtest_raw "classrank g8mraw g8rraw g8wraw g8mraw_sq g8mraw_cub g8rraw_sq g8rraw_cub g8wraw_sq g8wraw_cub"
global demog "black hisp frpl male"

global outcomes_tables_short "g10mscale_pass m_ever_pass g10mscale g10mz newspedT1 hsgrad_in8 totcred_math anycoll_in8 coll4yr_in8 anycoll coll4yr sems_enroll4yr25   BA earn23_zeroes earn24_zeroes earn25_zeroes earn23_24_25_zeroes  idle_all"
global next_tables_short " m_ever_pass g10mscale g10mz newspedT1 hsgrad_in8 totcred_math anycoll_in8 coll4yr_in8 anycoll coll4yr sems_enroll4yr25   BA earn23_zeroes earn24_zeroes earn25_zeroes earn23_24_25_zeroes  idle_all"

global outcomes_appendix "g10rscale g10rz  g10take_m g10wscale g10wscale_pass g10wz   absentT1 sameschT1 sameschT1ontime TXinT1 alt_new_ever pass_alg1 pass_geom pass_alg2 pass_precalc coll2yr_in8 AA coll4yr_flagship_in8 "
global next_appendix " g10rz  g10take_m g10wscale g10wscale_pass g10wz   absentT1 sameschT1 sameschT1ontime TXinT1 alt_new_ever pass_alg1 pass_geom pass_alg2 pass_precalc coll2yr_in8 AA coll4yr_flagship_in8 "




****BUILD OUTCOMES AND SAMPLE ****
if "$build_out"=="1"{

******************
*SWITCHES for build_out
********************
global clean_peims 1 // set up raw files for demos and more
global demos 1 // sample and demographics
global attend 1 // only starts in 1997 !!!!
global sped 1
global stillTX 1 // think of this like dropout
global sch_switch 1 // and switch to alternative school
global hsgrad 1 // HS graduation including graduation type
global math 1 // math coursework
global enroll 1 // college enrollment
global ba_aa 1 // ba or AA grad
global wage 1 //wages
global tests8 1 // baseine test scores
global tests 1 // 10th grade scores
global aeis 1 // aeis trends
global tests7 1 // 7th grade scores for spec check

************Clean PEIMS and Attendance for use elsewhere ******************
if "$clean_peims"=="1" {

local raw ${source}tea\peims\student" 
local rawOrg ${source}tea\peims\organization"

********* Student Data *************
*Primary file ********* Enrollment
forvalues year=1994(1)2009{
	use `raw'/enroll/enroll`year'.dta, clear
	keep if grade>=6
	if `year'>=1993 & `year'<=1995 {
		keep adaelig atrisk biling campus district economic esl ethnic grade pidrep ssnrep immig invpid ///
			lep sept1_ag sex speced chap1 vocedsta
		rename chap1 title1
		}
	if `year'>=1996 & `year'<=2000 {
		keep adaelig atrisk biling campus district economic esl ethnic grade pidrep ssnrep immig invpid ///
			lep sept1_ag sex speced title1 vocedsta
		}
	if `year'>=2001 & `year'<=2005 {
		keep adaelig atrisk biling campus district economic esl ethnic grade pidrep ssnrep immig invpid ///
			lep sept1_ag sex speced title1 vocedsta migrant_ind
		}
	if `year'>=2006 & `year'<=2008 {
		keep adaelig atrisk attributi biling campus district economic esl ethnic grade pidrep ssnrep immig invpid ///
			lep sept1_ag sex speced title1 vocedsta migrant_ind
		}
	if `year'==2009 {
		keep adaelig atrisk attributi biling campus district economic esl ethnic grade pidrep ssnrep immig invpid ///
			lep sept1_ag sex speced title1 vocedsta migrant_ind
		}

	gen year=`year'
	duplicates drop ssnrep year, force
	compress
	sort ssnrep
	save data/Enrollment`year'_full.dta, replace
		}

* First create file with first time 9th grade campuses
set more off
use data/Enrollment1994_full.dta, clear
keep if grade==9
keep ssnrep campus year
forvalues y = 1995/2006 {
	append using data/Enrollment`y'_full.dta
	keep ssnrep campus year grade
}
keep if grade==9
rename campus campus9
rename year year_9
save data/g9campus9506.dta, replace
 ********* Attendance 
 
local raw ${source}tea\peims\student" 
forvalues year=1997(1)2005 {
	use ssnrep absent grade using "`raw'/attend/attend`year'.dta, clear
	keep if grade>=6
	gen year=`year'
	compress
	sort ssnrep
	save data/Attendance`year'_full.dta, replace
}
 ********* Attendance six week
 
local raw ${source}tea\peims\student" 
local rawOrg ${source}tea\peims\organization"
forvalues year=1995(1)2009 {
	use  "`raw'/attend/attend_six/attend_six`year'.dta, clear
	keep if grade>=6
	keep ssnrep sixweek ntaught district nabsent nineli neli campus ///
		track npresent nmem  st_flag
	gen year=`year'
	compress
	sort ssnrep
	save data/AttendanceSixWeek`year'_full.dta, replace
}
local raw ${source}tea\peims\student" 
local rawOrg ${source}tea\peims\organization"
forvalues year=1991(1)2011 {
	use "`rawOrg'/campus/campus`year'f.dta, clear
	if `year'>=1991 & `year'<=1996 {
		keep campus cname p_lgrade p_hgrade district camptype campstat camstadt p_gragrp grdoffer

		}
	if `year'>=1997 & `year'<=1999 {
		keep campus cname p_lgrade p_hgrade district camptype campstat camstadt p_gragrp grdoffer c_chatyp
		}
	if `year'==2000 {
		keep campus cname p_lgrade p_hgrade district camptype campstat camstadt p_gragrp grdoffer c_chatyp altaccnt
		}
	if `year'>=2001 & `year'<=2011 {
		keep campus cname p_lgrade p_hgrade district camptype campstat camstadt p_gragrp c_chatyp altaccnt
		}
	gen year=`year'
	compress
	sort campus
	duplicates report campus

	save data/CampusFall`year'_full.dta, replace
		}

********ANALYSIS SAMPLE************
*9th graders in 1994 for diff in diff, any 9th graders, not just first time ninth graders
use data/Enrollment1994_full.dta, clear
keep ssnrep grade
keep if grade == 9
g year_9 = 1994
	keep if year_9!=.
	keep ssnrep year_9
	save data/sample_1994.dta, replace
*all other years, first time 9th graders
use data/Enrollment1994_full.dta, clear
	keep ssnrep grade
	rename grade grade1994
	merge 1:1 ssnrep using data/Enrollment1995_full.dta, keep(match) keepusing(grade)
	rename grade grade1995
	gen year_9=1995 if grade1994==8 & grade1995==9
	keep if year_9!=.
	keep ssnrep year_9
	save data/sample_1995.dta, replace
forvalues y=1995(1)2005 {
	local z=`y'+1
	use data/Enrollment`y'_full.dta, clear
	keep ssnrep grade
	rename grade grade`y'
	merge 1:1 ssnrep using data/Enrollment`z'_full.dta, keep(match) keepusing(grade)
	rename grade grade`z'
	gen year_9=`z' if grade`y'==8 & grade`z'==9
	keep if year_9!=.
	tab year_9
	keep ssnrep year_9
	save data/sample_`z'.dta, replace
	}
use data/sample_1994.dta, clear
forvalues y=1995(1)2006 {
	append using data/sample_`y'.dta
}
* Now that sample files are pooled, check for duplicates
* .16% of total sample (5477 kids of 3,512,322) are classified as members of 2 cohorts;  just drop these.
gen test=1
egen dupssn=count(test), by(ssnrep)
drop if dupssn~=1
sort ssnrep
save data/sample_all_cohorts.dta, replace


*1994 different
use data/sample_1994.dta, clear
	merge ssnrep using data/Enrollment1994_full.dta, unique sort
	tab _merge
	drop if _merge==2
	rename _merge merge_enroll
	rename year year_enrolldata
	keep ssnrep campus economic esl ethnic grade immig lep sept1_ag sex speced vocedsta year_enrolldata campus
	gen cte= vocedsta>0
	foreach var of varlist esl immig lep sex speced {
	rename `var' temp`var'
	gen `var'=temp`var'==1
	drop temp`var'
	}
	rename sex male
	rename campus campus8
	save data/sample_enroll1994.dta, replace
	
forvalues y=1995(1)2006 {
	local z=`y'-1
	use data/sample_`y'.dta, clear
	merge ssnrep using data/Enrollment`z'_full.dta, unique sort
	tab _merge
	drop if _merge==2
	rename _merge merge_enroll
	rename year year_enrolldata
	keep ssnrep campus economic esl ethnic grade immig lep sept1_ag sex speced vocedsta year_enrolldata campus
	gen cte= vocedsta>0
	foreach var of varlist esl immig lep sex speced {
	rename `var' temp`var'
	gen `var'=temp`var'==1
	drop temp`var'
	}
	rename sex male
	rename campus campus8
	save data/sample_enroll`y'.dta, replace
	}

use data/sample_enroll1994.dta, clear
forvalues y=1995(1)2006 {
append using data/sample_enroll`y'.dta
}
gen test=1
egen dupcount=count(test), by(ssnrep)
tab dupcount
drop if dupcount>1
sort ssnrep
save data/sample_enroll_all_cohorts.dta, replace


}

************* Create demographic file
if "$demos"=="1" {
* First create file with first time 9th grade campuses
set more off
use ssnrep campus year grade using data/Enrollment1994_full.dta, clear
keep if grade==9
forvalues y = 1995/2006 {
	append using data/Enrollment`y'_full.dta
	keep ssnrep campus year grade
	keep if grade==9
}
rename campus campus9
rename year year_9
save data/g9campus9506.dta, replace

* Assemble sample and demographic files 
set more off
use data/sample_all_cohorts.dta, clear
merge 1:1 ssnrep year_9 using data/g9campus9506.dta
drop if _merge==2
drop test dupssn _merge grade
merge ssnrep using data/sample_enroll_all_cohorts.dta, unique sort
drop _merge year_enroll test dupcount grade

* now take only cohorts you want again and create a few vars
*SRC 11/4/2014 -- keep 1994 so can do diff in diff
keep if year_9>=1994 & year_9<=2003

gen frpl = (economic>0 & economic!=.)
gen black=(ethnic==3)
gen hisp=(ethnic==4)
gen white=(ethnic==5)

* Create means for 8th grade campuses
foreach var of varlist frpl white black hisp male lep immig esl {
	bysort campus8: egen `var'_schl8=mean(`var')
}

* Create means for 9th grade campuses (for context macro)
foreach var of varlist black hisp white frpl lep immig esl {
	bysort campus9: egen `var'_schl9=mean(`var')
}
gen pct_nonwhite=1-white_schl9

* set enrollment to count of white, since white is never missing
bys campus9 year_9: egen g9enrollment=count(white)

save data/sample_demog_s.dta, replace



} //end demos switch
************* Attendance outcome
if "$attend"=="1"{

foreach y of numlist 1997(1)2005 {
	use data/Attendance`y'_full.dta , clear
	collapse (sum) absent , by(ssnrep)
	tempfile attendtemp`y'
	save "`attendtemp`y''", replace

	}
foreach y of numlist 1997(1)2003 {
local y1 = `y'+1
local y2 = `y'+2
	use data/sample_`y'.dta, clear
		g absentT=0
		g absentT1=0
		g absentT2=0
	merge 1:1 ssnrep using "`attendtemp`y''", nogen keep(1 3)
		replace absentT=absent if absent!=.
		drop absent
	merge 1:1 ssnrep using "`attendtemp`y1''", nogen keep(1 3)
		replace absentT1=absent if absent!=.
		drop absent
	merge 1:1 ssnrep using "`attendtemp`y2''", nogen keep(1 3)
		replace absentT2=absent if absent!=.
		drop absent
	tempfile attendtempclean`y'
	save "`attendtempclean`y''", replace
	}
	
	use  "`attendtempclean1997'", replace
	foreach y of numlist 1998(1)2003{
		append using "`attendtempclean`y''"
		}
*very few dups
sample 1, count by(ssnrep)
	save data/attendance.dta, replace
}
************* New SPED outcome
if "$sped"=="1"{

foreach y of numlist 1994(1)2005 {
	use data/Enrollment`y'_full.dta , clear
	collapse (sum) speced , by(ssnrep)
	tempfile spedtemp`y'
	save "`spedtemp`y''", replace
}

foreach y of numlist 1994(1)2003 {
local y1 = `y'+1
local y2 = `y'+2
	use data/sample_`y'.dta, clear
		g newspedT=0
		g newspedT1=0
		g newspedT2=0
	merge 1:1 ssnrep using "`spedtemp`y''", nogen keep(1 3)
		replace newspedT=speced if speced!=.
		drop speced
	merge 1:1 ssnrep using "`spedtemp`y1''", nogen keep(1 3)
		replace newspedT1=speced if speced!=.
		drop speced
	merge 1:1 ssnrep using "`spedtemp`y2''", nogen keep(1 3)
		replace newspedT2=speced if speced!=.
		drop speced
	tempfile spedtempclean`y'
	save "`spedtempclean`y''", replace
	}
	
	use  "`spedtempclean1994.dta'", replace
	foreach y of numlist 1995(1)2003{
		append using "`spedtempclean`y''"
		}
	*only if different from baseline sped designation!
	merge 1:1 ssnrep year_9 using data/sample_demog_s.dta, nogen keepusing(speced) keep(3)
		*make it so that this only turns on if NOT sped in 8th
		foreach v of varlist newsped* {
			replace `v'=0 if speced==1
			}
*5.2.2013 note that we are purposely coding sped to be new relative to 8th, not the grade before (i.e. 9th)
			drop speced
	*very few dups
sample 1, count by(ssnrep)
	save data/sped.dta, replace
}
************ Still in TX outcome (not dropout)
if "$stillTX"=="1"{

foreach y of numlist 1994(1)2006 {
	use data/Enrollment`y'_full.dta , clear
	keep ssnrep grade
	g TXin=1
	tempfile inTXtemp`y'
	save "`inTXtemp`y''", replace
}
foreach y of numlist 1994(1)2003 {
local y3 = `y'+3
local y2 = `y'+2
local y1 = `y'+1

	use data/sample_`y'.dta, clear
		g TXinT1=0
		g TXinT2=0
		g TXinT3=0
	merge 1:1 ssnrep using "`inTXtemp`y1''", nogen keep(1 3)
		replace TXinT1=1 if TXin==1
			g byte TXinT1ontime=(TXinT1==1&grade==10)
	merge 1:1 ssnrep using "`inTXtemp`y2''", nogen keep(1 3)
		replace TXinT2=1 if TXin==1
		drop TXin
				g byte TXinT2ontime=(TXinT2==1&grade==11)
	merge 1:1 ssnrep using "`inTXtemp`y3''", nogen keep(1 3)
		replace TXinT3=1 if TXin==1
		drop TXin
				g byte TXinT3ontime=(TXinT3==1&grade==12)
	tempfile inTXtempclean`y'
	save "`inTXtempclean`y''", replace
	}
	
	use  "`inTXtempclean1994'", replace
	foreach y of numlist 1995(1)2003{
		append using "`inTXtempclean`y''"
		}
	drop grade
		sample 1, count by(ssnrep)
	save data/inTX.dta, replace
}
************ School Switch and Alternative School Outcome
if "$sch_switch"=="1" {

*add switch to alternative, 
foreach y of numlist 1995(1)2005 {
	use  campus camptype using data/CampusFall`y'_full.dta, clear
	g alt=(camptype==2|camptype==8|camptype==10)
	drop camptype
	duplicates drop
	tempfile alt`y'
	save "`alt`y''", replace
	}
foreach y of numlist 1995(1)2005 {
	*switch
	use ssnrep campus using data/AttendanceSixWeek`y'_full.dta, clear 
	duplicates drop ssnrep campus, force
	merge m:1 campus using "`alt`y''", nogen keep(1 3)
	sort ssn campus
	by ssn: g count=_n
	bys ssn: egen maxsch=max(count)
	bys ssn: egen maxalt=max(alt)
	drop count campus alt
	sort ssn maxsch
	by ssn: g blah=_n
	keep if blah==1
	drop blah
	g switch_in_`y' =0
	replace switch_in_`y'=1 if maxsch>=2
	g alt_in_`y'=0
	replace alt_in_`y'=1 if maxalt==1
	tempfile switch_in_`y'
	save "`switch_in_`y''", replace
	use ssnrep campus using data/AttendanceSixWeek`y'_full.dta, clear 
	duplicates drop ssnrep campus, force
	sort ssn campus
	by ssn: g count=_n
	ren campus scampus
	reshape wide scampus, i(ssn) j(count)
	foreach n of numlist 2/20{
		cap g scampus`n'=.
		}
	tempfile campus`y'
	save "`campus`y''", replace
	}
foreach y of numlist 1995(1)2003 {
local y1 = `y'+1
local y2 = `y'+2
	use data/sample_`y'.dta, clear
	merge 1:1 ssnrep using "`switch_in_`y''", nogen keep(1 3)
	merge 1:1 ssnrep using "`switch_in_`y1''", nogen keep(1 3)
	merge 1:1 ssnrep using "`switch_in_`y2''", nogen keep(1 3)
	g switchT=0
	g switchT1=0
	g switchT2=0
	replace switchT = 1 if switch_in_`y'==1
		replace switchT1 = 1 if switch_in_`y1'==1
		replace switchT2 = 1 if switch_in_`y2'==1
	
	drop switch_in_* alt_in*
	merge 1:1 ssnrep using data/Enrollment`y'_full.dta, keep(1 3) nogen keepusing(campus)
	merge 1:1 ssnrep using "`campus`y1''", nogen keep(1 3)

	foreach n of numlist 1/20{
		replace switchT1=1 if campus!=scampus`n'&scampus`n'!=.
		}
	drop scampus*
	merge 1:1 ssnrep using "`campus`y2''", nogen keep(1 3)
	foreach n of numlist 1/20{
		replace switchT2=1 if campus!=scampus`n'&scampus`n'!=.
		}
		
	drop scampus*
	keep ssnrep year_9 switch* 
	tempfile switchers`y'
	save "`switchers`y''", replace
	}

		
	foreach y of numlist 1995(1)2003{
	local y1 = `y'+1
	local y2 = `y'+2
	use data/sample_`y'.dta, clear
		merge 1:1 ssnrep using data/Enrollment`y1'_full.dta, keep(1 3) nogen keepusing(grade)
		ren grade gradeT1
		merge 1:1 ssnrep using data/Enrollment`y2'_full.dta, keep(1 3) nogen keepusing(grade)
		ren grade gradeT2
		merge 1:1 ssnrep using "`switchers`y''", nogen keep(1 3)
			g byte sameschT1=switchT1==0
			g byte sameschT2=switchT2==0
			g byte sameschT1ontime=(switchT1==0&gradeT1==10)
			g byte sameschT2ontime=(switchT2==0&gradeT2==11)
	tempfile switchers1`y'
	save "`switchers1`y''", replace
		}
		
	use "`switchers11995'", clear
	foreach y of numlist 1996(1)2003{
		append using "`switchers1`y''"
		}
	compress
		sample 1, count by(ssnrep)
	save data/switchers.dta, replace

	*ALTS
foreach y of numlist 1995(1)2002 {
local y1 = `y'+1
local y2 = `y'+2
local y3 = `y'+3
	use data/sample_`y'.dta, clear
	merge 1:1 ssnrep using "`switch_in_`y''", nogen keep(1 3)
	merge 1:1 ssnrep using "`switch_in_`y1''", nogen keep(1 3)
	merge 1:1 ssnrep using "`switch_in_`y2''", nogen keep(1 3)
	merge 1:1 ssnrep using "`switch_in_`y3''", nogen keep(1 3)
	drop switch*
	g altT=0
	g altT1=0
	g altT2=0
	g altT3=0
	replace altT = 1 if alt_in_`y'==1
		replace altT1 = 1 if alt_in_`y1'==1
		replace altT2 = 1 if alt_in_`y2'==1		
		replace altT3 = 1 if alt_in_`y3'==1		
	drop max* alt_in_*
	merge 1:1 ssnrep using data/Enrollment`y'_full.dta, keep(1 3) nogen keepusing(campus)
	merge m:1 campus using "`alt`y''", nogen keep(1 3)
	ren alt alt9
		*if assigned school is alternative, blank out
		replace altT=0 if alt9==1
		*only include new assignments
		replace altT1=0 if altT==1 |alt9==1
		replace altT2=0 if altT1==1 |alt9==1
		replace altT3=0 if altT2==1 |alt9==1
		g byte alt_new_ever=(altT==1|altT1==1|altT2==1|altT3==1)
	tempfile alternative`y'
	save "`alternative`y''", replace
	}
	use  "`alternative1995'", clear
	foreach y of numlist 1996(1)2002{
		append using "`alternative`y''"
		}
		drop alt9 campus
	sample 1, count by(ssnrep)
	save data/alternative.dta, replace	
	
} // end school switch switch

************* Create HS Grad 
if "$hsgrad"=="1" {
set more off
*SRC 6.10.2013 HS graduation type
*11/4/2014 modified to include 1994 cohort
foreach y of numlist 1994 {
	use ssnrep  gradtype using  ${source}tea\peims\student\grad\grad`y'", clear
	*spring year
	g year=`y'+1
	tempfile temp_hsgradtype_`y'
	save "`temp_hsgradtype_`y''", replace
	}
	
use "`temp_hsgradtype_1994'", clear
foreach y of numlist 1995/2011{
	append using "`temp_hsgradtype_`y''"
	}

	g reg_hsgrad = (gradtype==1)
	g adv_hsgrad = (gradtype==2)
	g advhon_hsgrad = (gradtype==3)
	g iep_hsgrad = (gradtype==4|gradtype==5|gradtype==6|gradtype==7)
	g distach_hsgrad = (gradtype==9|gradtype==16|gradtype==17|gradtype==20|gradtype==23|gradtype==26|gradtype==29)	
	g rec_hsgrad = (gradtype==10|gradtype==14|gradtype==15|gradtype==19|gradtype==22|gradtype==25|gradtype==28)	
	g min_hsgrad = (gradtype==11|gradtype==12|gradtype==13|gradtype==18|gradtype==21|gradtype==24|gradtype==27)	

	drop gradtype
	
	*turn into 3 categories
	
	g min_reg_hsgrad =(reg_hsgrad==1|min_hsgrad==1 | rec_hsgrad==1)
	g dist_advhon_hsgrad =(distach_hsgrad==1|adv_hsgrad==1|advhon_hsgrad==1)
	
	keep ssnrep year iep min_reg_hsgrad dist_advhon_hsgrad
	
	*later keep first rep
	bys ssnrep year: keep if _n==1
	
	reshape wide *hsgrad, i(ssnrep) j(year)
	save data/hsgradtype1.dta, replace
	
	use data/sample_all_cohorts.dta, clear
	drop test dup
	
	merge 1:1 ssnrep using data/hsgradtype1.dta, keep(master match) nogen
	
foreach x in iep_hsgrad min_reg_hsgrad dist_advhon_hsgrad{
	g byte ontime_`x'=0
	g byte within8_`x'=0
	}
	
foreach y of numlist 1994/2004{
	*local y1 = `y'+1
	local y2 = `y'+2
	local y3 = `y'+3
	local y4 = `y'+4
	local y5 = `y'+5
	local y6 = `y'+6
	local y7 = `y'+7
	
foreach x in iep_hsgrad min_reg_hsgrad dist_advhon_hsgrad{
	replace ontime_`x'=1 if /*`x'`y1'==1|*/ `x'`y2'==1|`x'`y3'==1
	replace within8_`x'=1 if /*`x'`y1'==1|*/ `x'`y2'==1|`x'`y3'==1|`x'`y4'==1|`x'`y5'==1|`x'`y6'==1|`x'`y7'==1
	}
}
*make mutually exclusive with highest category
foreach c in ontime within8 {
	replace `c'_iep = 0 if `c'_dist==1
	replace `c'_min = 0 if `c'_dist==1
	replace `c'_iep = 0 if `c'_min==1
	g byte `c'_hsgrad=(`c'_iep==1|`c'_min==1|`c'_dist==1)

	}
	
	
keep ssnrep year_9 ontime* within8*

save data/hsgradtype.dta, replace



}
************** MATH COURSEWORK ********************
if "$math"=="1"{
forvalues y=1994(1)2003 {
use ${source}tea\peims\student\course\course`y'.dta, clear
gen serv_temp=substr(service,1,7)
keep if serv_temp=="0310050" | serv_temp=="0310060" | serv_temp=="0310070" | serv_temp=="0310110"
save data/HSmath`y'.dta, replace
}
*****grade levesl in math classes
use data/g9campus9506.dta, clear
keep campus9
duplicates drop
ren campus9 campus
save data/campus.dta, replace
forvalues y=1994(1)1999{
	use  data/HSmath`y'.dta, clear
	merge m:1 ssnrep using data/Enrollment`y'_full.dta, keep(3) nogen keepusing(ssnrep grade campus)
	*keep only high schools
	merge m:1 campus using data/campus.dta, keep(3) nogen
	stop
	
	}
******************************

forvalues y=1994(1)2003 {
use data/HSmath`y'.dta, clear
keep if serv_temp=="0310050"
bysort ssnrep serv_temp: egen totcred=total(credit)
replace totcred=totcred/2
replace totcred=1 if totcred>1 & totcred<5
replace totcred=. if totcred>=5
bysort ssnrep: egen temp_fail=min(credit)
gen ever_fail=temp_fail==0
duplicates drop ssnrep, force
keep ssnrep totcred ever_fail
rename totcred totcred_alg1_`y'
rename ever_fail fail_alg1_`y'
compress
save data/alg1`y'.dta, replace
}
forvalues y=1994(1)2003 {
use data/HSmath`y'.dta, clear
keep if serv_temp=="0310110"
bysort ssnrep serv_temp: egen totcred=total(credit)
replace totcred=totcred/2
replace totcred=1 if totcred>1 & totcred<5
replace totcred=. if totcred>=5
bysort ssnrep: egen temp_fail=min(credit)
gen ever_fail=temp_fail==0
duplicates drop ssnrep, force
keep ssnrep totcred ever_fail
rename totcred totcred_precalc_`y'
rename ever_fail fail_precalc_`y'
compress
save data/precalc`y'.dta, replace
}
forvalues y=1994(1)2003 {
use data/HSmath`y'.dta, clear
keep if serv_temp=="0310060"
bysort ssnrep serv_temp: egen totcred=total(credit)
replace totcred=totcred/2
replace totcred=1 if totcred>1 & totcred<5
replace totcred=. if totcred>=5
bysort ssnrep: egen temp_fail=min(credit)
gen ever_fail=temp_fail==0
duplicates drop ssnrep, force
keep ssnrep totcred ever_fail
rename totcred totcred_alg2_`y'
rename ever_fail fail_alg2_`y'
compress
save data/alg2.dta, replace
}
forvalues y=1994(1)2003 {
use data/HSmath`y'.dta, clear
keep if serv_temp=="0310070"
bysort ssnrep serv_temp: egen totcred=total(credit)
replace totcred=totcred/2
replace totcred=1 if totcred>1 & totcred<5
replace totcred=. if totcred>=5
bysort ssnrep: egen temp_fail=min(credit)
gen ever_fail=temp_fail==0
duplicates drop ssnrep, force
keep ssnrep totcred ever_fail
rename totcred totcred_geom_`y'
rename ever_fail fail_geom_`y'
save data/geom`y'.dta, replace
}
use data/alg11994.dta, clear
forvalues y=1995(1)2003 {
	merge 1:1 ssnrep using data/alg1`y'.dta, keep(master using match) nogen 
}
egen totcred_alg1=rowtotal(totcred_alg1_*)
egen ever_fail_alg1=rowmin(fail_alg1_*)
keep ssnrep totcred_alg1 ever_fail_alg1
save data/alg1.dta, replace

use data/alg21994.dta, clear
forvalues y=1995(1)2003 {
	merge 1:1 ssnrep using data/alg2`y'.dta, keep(master using match) nogen 
}
egen totcred_alg2=rowtotal(totcred_alg2_*)
egen ever_fail_alg2=rowmin(fail_alg2_*)
keep ssnrep totcred_alg2 ever_fail_alg2
save data/alg2.dta, replace

use data/geom1994.dta, clear
forvalues y=1995(1)2003 {
	merge 1:1 ssnrep using data/geom`y'.dta, keep(master using match) nogen
}
egen totcred_geom=rowtotal(totcred_geom_*)
egen ever_fail_geom=rowmin(fail_geom_*)
keep ssnrep totcred_geom ever_fail_geom
save data/geom.dta, replace

use  data/precalc1994.dta, replace
forvalues y=1995(1)2003 {
	merge 1:1 ssnrep using data/precalc1994.dta, keep(master using match) nogen
}
egen totcred_precalc=rowtotal(totcred_precalc_*)
egen ever_fail_precalc=rowmin(fail_precalc_*)
keep ssnrep totcred_precalc ever_fail_precalc
save data/precalc.dta, replace


use data/alg1.dta, clear
merge 1:1 ssnrep using data/geom.dta, keep(master using match) nogenerate
merge 1:1 ssnrep using data/alg2.dta, keep(master using match) nogenerate
merge 1:1 ssnrep using data/precalc.dta, keep(master using match) nogenerate
foreach x in alg1 geom alg2 precalc {
	gen pass_`x'=totcred_`x'>=1 & totcred_`x'!=.
}
compress
save data/HSmath.dta, replace
}	

************** College enrollment ********************
if "$enroll"=="1" {
*note _1 fall enrollment
*_2 spring
*2 year schools public
**SRC 6.10.2013 add semesters enrolled
*change years 11/5/2014 so can do 1994 (stop in 2010)
foreach y of numlist 1994/2009 {
	use ssnrep type_j using ${source}thecb\report1\college\d1jr`y'_1.dta, clear
	g enroll2yrPUB=(type_j<5)
	g enroll4yrPUB=(type_j>=5)
	g enroll2yr=(type_j<5)
	g enroll4yr=(type_j>=5)

	g sem_enroll2yrPUB=(type_j<5)
	g sem_enroll4yrPUB=(type_j>=5)
	g sem_enroll2yr=(type_j<5)
	g sem_enroll4yr=(type_j>=5)
	
	drop type
	collapse (max) enroll* sem_*, by(ssnrep)
	save data/enroll2yrpubtemp`y'.dta, replace
	use ssnrep type_j  using ${source}thecb\report1\college\d1jr`y'_2.dta, clear
	g enroll2yrPUB=(type_j<5)
	g enroll4yrPUB=(type_j>=5)
	g enroll2yr=(type_j<5)
	g enroll4yr=(type_j>=5)

	g sem_enroll2yrPUB=(type_j<5)
	g sem_enroll4yrPUB=(type_j>=5)
	g sem_enroll2yr=(type_j<5)
	g sem_enroll4yr=(type_j>=5)
	
	drop type
	collapse (max) enroll* sem_*, by(ssnrep)
	append using data/enroll2yrpubtemp`y'.dta
	collapse (max) enroll* (sum) sem_*, by(ssnrep)
	save data/enroll2yrpubtemp`y'.dta, replace
	}
*4 year schools public
*SRC add flagship flag: FICE Code for Austin 3658, A&M 3632
foreach y of numlist 1994/2009 {
	use ssnrep type school if type<=4 using ${source}thecb\report1\university\d1sr`y'_1.dta, clear
	g enroll4yr=1
	g enroll4yrPUB=1
	g enroll4yrFLAGSHIP=1 if school==3658|school==3632
	g sem_enroll4yrPUB=1
	g sem_enroll4yr=1
	g sem_enroll4yrFLAGSHIP=1 if school==3658|school==3632
	drop type school
	collapse (max) enroll* sem_*, by(ssnrep)
	save data/enroll4yrpubtemp`y'.dta, replace
	use ssnrep type school if type<=4 using ${source}thecb\report1\university\d1sr`y'_2.dta, clear
	g enroll4yr=1
	g enroll4yrPUB=1
	g enroll4yrFLAGSHIP=1 if school==3658|school==3632
	g sem_enroll4yrPUB=1
	g sem_enroll4yr=1
	g sem_enroll4yrFLAGSHIP=1 if school==3658|school==3632
	drop type school
	collapse (max) enroll* sem_*, by(ssnrep)
	append using  data/enroll4yrpubtemp`y'.dta
	collapse (max) enroll* (sum) sem_*, by(ssnrep)
	save  data/enroll4yrpubtemp`y'.dta, replace
	}
*independent

foreach y of numlist 2003(1)2009 {
	use ssnrep type if type<=4 using ${source}thecb\report1\independent\d1i`y'_1.dta, clear
	g enroll4yr=1
	g sem_enroll4yr=1
	drop type
	collapse (max) enroll* sem_*, by(ssnrep)
	save  data/enroll4yrprivtemp`y'.dta, replace
	use ssnrep type if type<=4 using ${source}thecb\report1\independent\d1i`y'_2.dta, clear
	g enroll4yr=1
	g sem_enroll4yr=1
	drop type
	collapse (max) enroll* sem_*, by(ssnrep)
	append using data/enroll4yrprivtemp`y'.dta
	collapse (max) enroll* (sum) sem_*, by(ssnrep)
	save data/enroll4yrprivtemp`y'.dta, replace
	}

foreach y of numlist  1994(1)2002 {	
	use data/enroll4yrpubtemp`y'.dta, clear
	append using data/enroll2yrpubtemp`y'.dta
	foreach v of varlist enroll* sem*{
		replace `v'=0 if `v'==.
		}
		collapse (max) enroll* (sum) sem*, by(ssnrep)
	save data/enrolltemp`y'.dta, replace
	}

foreach y of numlist 2003(1)2009 {	
	use data/enroll4yrpubtemp`y'.dta, clear
	append using data/enroll2yrpubtemp`y'.dta
	append using data/enroll4yrprivtemp`y'.dta
	foreach v of varlist enroll* sem*{
		replace `v'=0 if `v'==.
		}
	collapse (max) enroll* (sum) sem*, by(ssnrep)
	save data/enrolltemp`y'.dta, replace
	}
	
	 
	
***okay now transform into outcomes	
foreach y of numlist 1994/1999 {
	local y1=`y'+1 // hs soph ONTIME
	local y2=`y'+2 // hs jr ONTIME
	local y3=`y'+3 // hs sr ONTIME
	local y4=`y'+4 // col fr ONTIME
	local y5=`y'+5 // col so WITHIN8
	local y6=`y'+6 // col jr WITHIN8
	local y7=`y'+7 // col sr WITHIN8
	local y8=`y'+8 // WITHIN8
	local y9=`y'+9 // WITHIN8
	local y10=`y'+10 // WITHIN8
	local y11=`y'+11 // Still in college at age 25
	
	use data/sample_`y'.dta, clear
	*ontime enrollment
	g byte ontime_enroll4yr=0
	g byte ontime_enroll4yrPUB=0
	g byte ontime_enroll4yrFLAGSHIP=0
	g byte ontime_enroll2yr=0
	g byte ontime_enroll2yrPUB=0
	g byte within8_enroll4yr=0
	g byte within8_enroll4yrPUB=0
	g byte within8_enroll4yrFLAGSHIP=0
	g  byte  within8_enroll2yr=0
	g  byte within8_enroll2yrPUB=0
	
	*6.10.2013 SRC generate enrolled variables for productive
	foreach t in 4yr 4yrPUB 4yrFLAGSHIP 2yr 2yrPUB {
		g byte enroll`t'_plus4=0
		g byte enroll`t'_plus5=0
		g byte enroll`t'_plus6=0
		g byte enroll`t'_plus7=0
		g byte enroll`t'_plus8=0
		g byte enroll`t'_plus9=0
		g byte enroll`t'_plus10=0
		g byte enroll`t'_plus11=0
		g byte sems_enroll`t'=0
	}
	g byte still_enrolled_coll25=0
	
	merge 1:1 ssnrep using data\enrolltemp`y1'.dta, keep(master match)  nogen
		foreach e in enroll4yr enroll4yrPUB  enroll4yrFLAGSHIP enroll2yr enroll2yrPUB{
			replace ontime_`e' = 1 if `e'==1
			replace within8_`e' = 1 if `e'==1	
			replace sems_`e'=sem_`e' if sem_`e'!=.
		}
		drop enroll4yr enroll4yrPUB enroll2yr enroll2yrPUB enroll4yrFLAGSHIP sem_*
	merge 1:1 ssnrep using data\enrolltemp`y2'.dta, keep(master match)  nogen
		foreach e in enroll4yr enroll4yrPUB enroll4yrFLAGSHIP enroll2yr enroll2yrPUB{
			replace ontime_`e' = 1 if `e'==1
			replace within8_`e' = 1 if `e'==1			
			replace sems_`e'=sems_`e'+sem_`e' if sem_`e'!=.
		}
		drop enroll4yr enroll4yrPUB enroll2yr enroll2yrPUB enroll4yrFLAGSHIP sem_*
	merge 1:1 ssnrep using data\enrolltemp`y3'.dta, keep(master match)  nogen
		foreach e in enroll4yr enroll4yrPUB enroll4yrFLAGSHIP enroll2yr enroll2yrPUB{
			replace ontime_`e' = 1 if `e'==1
			replace within8_`e' = 1 if `e'==1			
			replace sems_`e'=sems_`e'+sem_`e' if sem_`e'!=.
		}
		drop enroll4yr enroll4yrPUB enroll2yr enroll2yrPUB enroll4yrFLAGSHIP sem_*
	merge 1:1 ssnrep using data\enrolltemp`y4'.dta, keep(master match)  nogen
		foreach e in enroll4yr enroll4yrPUB enroll4yrFLAGSHIP enroll2yr enroll2yrPUB{
			replace ontime_`e' = 1 if `e'==1
			replace within8_`e' = 1 if `e'==1	
			replace `e'_plus4=1 if `e'==1
			replace sems_`e'=sems_`e'+sem_`e' if sem_`e'!=.
		}
		drop enroll4yr enroll4yrPUB enroll2yr enroll2yrPUB enroll4yrFLAGSHIP sem_*
	merge 1:1 ssnrep using data\enrolltemp`y5'.dta, keep(master match)  nogen
		foreach e in enroll4yr enroll4yrPUB enroll4yrFLAGSHIP enroll2yr enroll2yrPUB{
			replace within8_`e' = 1 if `e'==1			
			replace `e'_plus5=1 if `e'==1
			replace sems_`e'=sems_`e'+sem_`e' if sem_`e'!=.
		}
		drop enroll4yr enroll4yrPUB enroll2yr enroll2yrPUB enroll4yrFLAGSHIP sem_*
	merge 1:1 ssnrep using data\enrolltemp`y6'.dta, keep(master match)  nogen
		foreach e in enroll4yr enroll4yrPUB enroll4yrFLAGSHIP enroll2yr enroll2yrPUB{
			replace within8_`e' = 1 if `e'==1			
			replace `e'_plus6=1 if `e'==1
			replace sems_`e'=sems_`e'+sem_`e' if sem_`e'!=.
		}
		drop enroll4yr enroll4yrPUB enroll2yr enroll2yrPUB enroll4yrFLAGSHIP sem_*
	merge 1:1 ssnrep using data\enrolltemp`y7'.dta, keep(master match)  nogen
		foreach e in enroll4yr enroll4yrPUB enroll4yrFLAGSHIP enroll2yr enroll2yrPUB{
			replace within8_`e' = 1 if `e'==1			
				replace `e'_plus7=1 if `e'==1
			replace sems_`e'=sems_`e'+sem_`e' if sem_`e'!=.
		}
		drop enroll4yr enroll4yrPUB enroll2yr enroll2yrPUB enroll4yrFLAGSHIP sem_*
	merge 1:1 ssnrep using data\enrolltemp`y8'.dta, keep(master match)  nogen
		foreach e in enroll4yr enroll4yrPUB enroll2yr enroll2yrPUB enroll4yrFLAGSHIP{
			replace within8_`e' = 1 if `e'==1			
			replace `e'_plus8=1 if `e'==1
			replace sems_`e'=sems_`e'+sem_`e' if sem_`e'!=.
		}
		drop enroll4yr enroll4yrPUB enroll2yr enroll2yrPUB enroll4yrFLAGSHIP sem_*
	if `y'<=2002{
	merge 1:1 ssnrep using data\enrolltemp`y9'.dta, keep(master match)  nogen
		foreach e in enroll4yr enroll4yrPUB enroll2yr enroll2yrPUB enroll4yrFLAGSHIP{
			replace `e'_plus9=1 if `e'==1
			replace sems_`e'=sems_`e'+sem_`e' if sem_`e'!=.
		}
		drop enroll4yr enroll4yrPUB enroll2yr enroll2yrPUB enroll4yrFLAGSHIP sem_*
		}
	if `y'<=2001{
	merge 1:1 ssnrep using data\enrolltemp`y10'.dta, keep(master match)  nogen
		foreach e in enroll4yr enroll4yrPUB enroll2yr enroll2yrPUB enroll4yrFLAGSHIP{
			replace `e'_plus10=1 if `e'==1
			replace sems_`e'=sems_`e'+sem_`e' if sem_`e'!=.
		}
		drop enroll4yr enroll4yrPUB enroll2yr enroll2yrPUB enroll4yrFLAGSHIP sem_*
		}/*
	if `y'<=2000{
	merge 1:1 ssnrep using data\enrolltemp`y11'.dta, keep(master match)  nogen
		foreach e in enroll4yr enroll4yrPUB enroll4yrFLAGSHIP enroll2yr enroll2yrPUB{
			replace `e'_plus11=1 if `e'==1
			replace still_enrolled_coll25 = 1 if `e'==1			
			replace sems_`e'=sems_`e'+sem_`e' if sem_`e'!=.
			ren sems_`e' sems_`e'25
		}
		drop enroll4yr enroll4yrPUB enroll2yr enroll2yrPUB enroll4yrFLAGSHIP sem_*
		*/
	sort ssnrep year_9
	duplicates drop ssnrep, force
	save data/enroll_coll`y'.dta, replace
	}
* STACK enroll FILES
use data/enroll_coll`y'.dta, clear
forvalues y=1994(1)1999 {
	append using data/enroll_coll`y'.dta
	}
sort ssnrep year_9
drop  sems_enrollany25 ontime_enrollany within8_enrollany ontime_enrollanyPUB within8_enrollanyPUB enrollany*
duplicates drop
g sems_enrollany25=(sems_enroll4yr25+sems_enroll2yr25)
g ontime_enrollany=(ontime_enroll4yr==1|ontime_enroll2yr==1)
g within8_enrollany=(within8_enroll4yr==1|within8_enroll2yr==1)
g ontime_enrollanyPUB=(ontime_enroll4yrPUB==1|ontime_enroll2yrPUB==1)
g within8_enrollanyPUB=(within8_enroll4yrPUB==1|within8_enroll2yrPUB==1)
drop *25 *plus11
duplicates drop
foreach n of numlist 4/11{
	g enrollany_plus`n'=(enroll4yr_plus`n'==1|enroll4yr_plus`n'==1)
	}
drop  sems_enroll4yr sems_enroll4yrFLAGSHIP  sems_enroll4yrPUB sems_enroll2yr sems_enroll2yrPUB
*very few dups, drop randomly
sample 1, count by(ssnrep)
*old outcomes replaces if there is a contradiction
merge 1:1 ssnrep year_9 using  data/enroll_coll.dta, nogen update replace
sample 1, count by(ssnrep)
save data/enroll_coll_with1994.dta, replace
}


************ CREATE BA COMPLETION FILE ********************
if "$ba_aa"=="1" {

*Now clean degree files*
*Duplicates are usually multiple degrees and/or multiple majors*
*SRC 4.4. add in AA's
foreach y of numlist 1990(1)2009 {
	use ssnrep age major school level using ${source}thecb\report9\university\d9sr`y'.dta, clear
	gen ba=level==2
	gen aa=level==1
	gsort ssnrep -ba
	duplicates drop ssnrep, force
	keep ssnrep age major school ba aa
	order ssnrep
	tempfile deg`y'_public
	save "`deg`y'_public'", replace
	use ssnrep age major school level using ${source}thecb\report9\college\d9jr`y'.dta, clear
	gen ba=level==2
	gen aa=level==1
	gsort ssnrep -aa
	duplicates drop ssnrep, force
	keep ssnrep age major school ba aa
	order ssnrep
	tempfile deg`y'_publicAA
	save "`deg`y'_publicAA'", replace
	}

foreach y of numlist 2003(1)2009 {
	use ${source}thecb\report9\independent\d9i`y'.dta, clear
	gen ba=level_i==2
	gen aa=level_i==1
	gsort ssnrep -ba
	duplicates drop ssnrep, force
	keep ssnrep age major school ba aa
	order ssnrep
	tempfile deg`y'_private
	save "`deg`y'_private'", replace
}

		*4.5 SRC add AA (already cleaned up postsec file
		*4.6 adapt for public only
set more off
foreach y of numlist 1994 /*1994/1999*/ {
	local a=`y'+8
	local b=`y'+9
	local c=`y'+10
	local d=`y'+11
	
	use data/sample_`y'.dta, clear
		merge 1:1 ssnrep using "`deg`a'_public'", keep(master match) keepusing(ba aa ) nogen
		rename ba ba_`a'
		ren aa aa_`a'
		g pubba_`a'=ba_`a'
		g pubaa_`a'=aa_`a'
		
		merge 1:1 ssnrep using "`deg`a'_publicAA'", keep(master match) keepusing(ba aa ) nogen update replace
		replace ba_`a'=ba if ba_`a'==.
		replace aa_`a'=aa if aa_`a'==.
		replace pubba_`a'=ba if pubba_`a'==.
		replace pubaa_`a'=aa if pubaa_`a'==.
		drop ba aa
		/*
		cap merge 1:1 ssnrep using "`deg`a'_private'", keep(master match) keepusing(ba aa ) nogen
		replace ba_`a'=ba if ba_`a'==.
		replace aa_`a'=aa if aa_`a'==.
		drop ba aa
		*/
		merge 1:1 ssnrep using "`deg`b'_public'", keep(master match) keepusing(ba aa ) nogen
		rename ba ba_`b'
		ren aa aa_`b'
		g pubba_`b'=ba_`b'
		g pubaa_`b'=aa_`b'
		merge 1:1 ssnrep using "`deg`b'_publicAA'", keep(master match) keepusing(ba aa ) nogen update replace
		replace ba_`b'=ba if ba_`b'==.
		replace aa_`b'=aa if aa_`b'==.
		replace pubba_`b'=ba if pubba_`b'==.
		replace pubaa_`b'=aa if pubaa_`b'==.
		drop ba aa
		/*
		cap merge 1:1 ssnrep using "`deg`b'_private'", keep(master match) keepusing(ba aa ) nogen
		replace ba_`b'=ba if ba_`b'==.
		replace aa_`b'=aa if aa_`b'==.
		drop ba aa
		*/
		merge 1:1 ssnrep using "`deg`c'_public'", keep(master match) keepusing(ba aa ) nogen
		rename ba ba_`c'
		ren aa aa_`c'
		g pubba_`c'=ba_`c'
		g pubaa_`c'=aa_`c'
		merge 1:1 ssnrep using "`deg`c'_publicAA'", keep(master match) keepusing(ba aa ) nogen update replace
		replace ba_`c'=ba if ba_`c'==.
		replace aa_`c'=aa if aa_`c'==.
		replace pubba_`c'=ba if pubba_`c'==.
		replace pubaa_`c'=aa if pubaa_`c'==.
		drop ba aa
		cap merge 1:1 ssnrep using "`deg`c'_private'", keep(master match) keepusing(ba aa ) nogen
		replace ba_`c'=ba if ba_`c'==.
		replace aa_`c'=aa if aa_`c'==.
		drop ba aa
		
		merge 1:1 ssnrep using "`deg`d'_public'", keep(master match) keepusing(ba aa ) nogen
		rename ba ba_`d'
		ren aa aa_`d'
		g pubba_`d'=ba_`d'
		g pubaa_`d'=aa_`d'
		merge 1:1 ssnrep using "`deg`d'_publicAA'", keep(master match) keepusing(ba aa ) nogen update replace
		replace ba_`d'=ba if ba_`d'==.
		replace aa_`d'=aa if aa_`d'==.
		replace pubba_`d'=ba if pubba_`d'==.
		replace pubaa_`d'=aa if pubaa_`d'==.
		drop ba aa
		/*
		cap merge 1:1 ssnrep using "`deg`d'_private'", keep(master match) keepusing(ba aa ) nogen
		replace ba_`d'=ba if ba_`d'==.
		replace aa_`d'=aa if aa_`d'==.
		drop ba aa
		*/
	*Reconstruct ba to be "BA by year X" rather than "BA in year X" 
	foreach var in ba aa pubaa pubba{
	replace `var'_`b'=1 if `var'_`a'==1
	replace `var'_`c'=1 if `var'_`b'==1
	replace `var'_`d'=1 if `var'_`c'==1
	}
	keep ssnrep-year_9 ba_* aa_* pubaa_* pubba_*
	foreach x in ba aa pubaa pubba {
		rename `x'_`a' `x'_plus8
		rename `x'_`b' `x'_plus9
		rename `x'_`c' `x'_plus10
		rename `x'_`d' `x'_plus11
	}
	foreach var of varlist ba_plus8 ba_plus9 ba_plus10 ba_plus11 aa_plus* pubba_plus* pubaa_plus* {
		replace `var'=0 if `var'==.
		}
	compress
	save data/Outcomes_`y'_ML.dta, replace
}
	
set more off
forvalues y=2001(1)2001 {
	local a=`y'+8
	local b=`y'+9
	local c=`y'+10
	
	use data/sample_`y'.dta, clear
		merge 1:1 ssnrep using "`deg`a'_public'", keep(master match) keepusing(ba aa ) nogen
		rename ba ba_`a'
		ren aa aa_`a'
		g pubba_`a'=ba_`a'
		g pubaa_`a'=aa_`a'
		
		merge 1:1 ssnrep using "`deg`a'_publicAA'", keep(master match) keepusing(ba aa ) nogen update replace
		replace ba_`a'=ba if ba_`a'==.
		replace aa_`a'=aa if aa_`a'==.
		replace pubba_`a'=ba if pubba_`a'==.
		replace pubaa_`a'=aa if pubaa_`a'==.
		drop ba aa
		merge 1:1 ssnrep using "`deg`a'_private'", keep(master match) keepusing(ba aa ) nogen
		replace ba_`a'=ba if ba_`a'==.
		replace aa_`a'=aa if aa_`a'==.
		drop ba aa
		
		merge 1:1 ssnrep using "`deg`b'_public'", keep(master match) keepusing(ba aa ) nogen
		rename ba ba_`b'
		ren aa aa_`b'
		g pubba_`b'=ba_`b'
		g pubaa_`b'=aa_`b'
		merge 1:1 ssnrep using "`deg`b'_publicAA'", keep(master match) keepusing(ba aa ) nogen update replace
		replace ba_`b'=ba if ba_`b'==.
		replace aa_`b'=aa if aa_`b'==.
		replace pubba_`b'=ba if pubba_`b'==.
		replace pubaa_`b'=aa if pubaa_`b'==.
		drop ba aa
		merge 1:1 ssnrep using "`deg`b'_private'", keep(master match) keepusing(ba aa ) nogen
		replace ba_`b'=ba if ba_`b'==.
		replace aa_`b'=aa if aa_`b'==.
		drop ba aa
		
		merge 1:1 ssnrep using "`deg`c'_public'", keep(master match) keepusing(ba aa ) nogen
		rename ba ba_`c'
		ren aa aa_`c'
		g pubba_`c'=ba_`c'
		g pubaa_`c'=aa_`c'
		merge 1:1 ssnrep using "`deg`c'_publicAA'", keep(master match) keepusing(ba aa ) nogen update replace
		replace ba_`c'=ba if ba_`c'==.
		replace aa_`c'=aa if aa_`c'==.
		replace pubba_`c'=ba if pubba_`c'==.
		replace pubaa_`c'=aa if pubaa_`c'==.
		drop ba aa
		merge 1:1 ssnrep using "`deg`c'_private'", keep(master match) keepusing(ba aa ) nogen
		replace ba_`c'=ba if ba_`c'==.
		replace aa_`c'=aa if aa_`c'==.
		drop ba aa
		
	*Reconstruct ba to be "BA by year X" rather than "BA in year X" 
	foreach var in ba aa pubaa pubba{
	replace `var'_`b'=1 if `var'_`a'==1
	replace `var'_`c'=1 if `var'_`b'==1
	}
	keep ssnrep-year_9 ba_* aa_* pubaa_* pubba_*
	foreach x in ba aa pubaa pubba {
		rename `x'_`a' `x'_plus8
		rename `x'_`b' `x'_plus9
		rename `x'_`c' `x'_plus10
	}
	foreach var of varlist ba_plus8 ba_plus9 ba_plus10 aa_plus* pubaa_plus* pubaa_* {
		replace `var'=0 if `var'==.
		}
	compress
	save data/Outcomes_`y'_ML.dta, replace
}
	
	
set more off
forvalues y=2002(1)2002 {
	local a=`y'+8
	local b=`y'+9
	
	use data/sample_`y'.dta, clear
	merge 1:1 ssnrep using "`deg`a'_public'", keep(master match) keepusing(ba aa ) nogen
		rename ba ba_`a'
		ren aa aa_`a'
		g pubba_`a'=ba_`a'
		g pubaa_`a'=aa_`a'
		merge 1:1 ssnrep using "`deg`a'_publicAA'", keep(master match) keepusing(ba aa ) nogen update replace
		replace ba_`a'=ba if ba_`a'==.
		replace aa_`a'=aa if aa_`a'==.
		replace pubba_`a'=ba if pubba_`a'==.
		replace pubaa_`a'=aa if pubaa_`a'==.
		drop ba aa
		merge 1:1 ssnrep using "`deg`a'_private'", keep(master match) keepusing(ba aa ) nogen
		replace ba_`a'=ba if ba_`a'==.
		replace aa_`a'=aa if aa_`a'==.
		drop ba aa
		
		merge 1:1 ssnrep using "`deg`b'_public'", keep(master match) keepusing(ba aa ) nogen
		rename ba ba_`b'
		ren aa aa_`b'
		g pubba_`b'=ba_`b'
		g pubaa_`b'=aa_`b'
		merge 1:1 ssnrep using "`deg`b'_publicAA'", keep(master match) keepusing(ba aa ) nogen update replace
		replace ba_`b'=ba if ba_`b'==.
		replace aa_`b'=aa if aa_`b'==.
		replace pubba_`b'=ba if pubba_`b'==.
		replace pubaa_`b'=aa if pubaa_`b'==.
		drop ba aa
		merge 1:1 ssnrep using "`deg`b'_private'", keep(master match) keepusing(ba aa ) nogen
		replace ba_`b'=ba if ba_`b'==.
		replace aa_`b'=aa if aa_`b'==.
		drop ba aa
		
		
	*Reconstruct ba to be "BA by year X" rather than "BA in year X" 
	foreach var in ba aa pubaa pubba {
	replace `var'_`b'=1 if `var'_`a'==1
	}
	keep ssnrep-year_9 ba_* aa_* pubba_* pubaa_*
	foreach x in ba aa pubba pubaa{
		rename `x'_`a' `x'_plus8
		rename `x'_`b' `x'_plus9
	}
	foreach var of varlist ba_plus8 ba_plus9 aa_plus* pubba_plus* pubaa_plus* {
		replace `var'=0 if `var'==.
		}
	compress
	save data/Outcomes_`y'_ML.dta, replace
}	
	
set more off
forvalues y=2003(1)2003 {
	local a=`y'+8
	
	use data/sample_`y'.dta, clear
	merge 1:1 ssnrep using "`deg`a'_public'", keep(master match) keepusing(ba aa ) nogen
		rename ba ba_`a'
		ren aa aa_`a'
		g pubba_`a'=ba_`a'
		g pubaa_`a'=aa_`a'
		merge 1:1 ssnrep using "`deg`a'_publicAA'", keep(master match) keepusing(ba aa ) nogen update replace
		replace ba_`a'=ba if ba_`a'==.
		replace aa_`a'=aa if aa_`a'==.
		replace pubba_`a'=ba if pubba_`a'==.
		replace pubaa_`a'=aa if pubaa_`a'==.
		drop ba aa
		merge 1:1 ssnrep using "`deg`a'_private'", keep(master match) keepusing(ba aa ) nogen
		replace ba_`a'=ba if ba_`a'==.
		replace aa_`a'=aa if aa_`a'==.
		drop ba aa
		
	keep ssnrep-year_9 ba_*  aa_* pubaa_* pubba_*
	foreach x in ba aa pubaa pubba{
		rename `x'_`a' `x'_plus8
	}
	foreach var in ba_plus8 aa_plus8 pubba_plus8 pubaa_plus8 {
		replace `var'=0 if `var'==.
		}
	compress
	save data/Outcomes_`y'_ML.dta, replace
}	
	
* STACK BA FILES
use data/Outcomes_1994_ML.dta, clear
forvalues y=1995(1)2003 {
	append using data/Outcomes_`y'_ML.dta
	}
sort ssnrep year_9
*very few dups, drop randomly
sample 1, count by(ssnrep)
save data/BAcompletion.dta, replace

} // end ba_aa switch

************** Earnings ********************
if "$wage"=="1" {
*set up earnings
foreach year of numlist 1994/2010 { 
	forval q=1/4 { 
			use ssnrep wage using ${source}twc\twc`year'_q`q'.dta, clear
			rename wage wage_`year'_q`q'
			duplicates drop ssnrep, force
			save data/w`year'_q`q', replace
		}
	}


********* Create Wage File
*SRC 6.10.2013 adapt to include earlier wages (e-h)
set more off
forvalues y=1994(1)1999 {
	local a=`y'+8
	local b=`y'+9
	local c=`y'+10
	local d=`y'+11
	local e=`y'+4
	local f=`y'+5
	local g=`y'+6
	local h=`y'+7
	
	use data/sample_`y'.dta, clear
	
	foreach x in `a' `b' `c' `d' `e' `f' `g' `h' {
	
		forvalues q=1(1)4 {
		merge 1:1 ssnrep using data/w`x'_q`q'.dta, keep(master match) nogen
		}
		egen misswage_`x'=rowmiss(wage_`x'_*)
		gen poswage_any_`x'=misswage_`x'!=4
		gen poswage_all_`x'=misswage_`x'==0
		gen poswage_total_`x'=4-(misswage_`x')
		foreach var of varlist wage_* {
			replace `var'=0 if `var'==.
		}
		* adjust to 2011 wages
		*SRC add years using BLS calculator
		foreach var of varlist wage_* {
			qui replace `var'=`var'*1.52 if `x'==1994
			qui replace `var'=`var'*1.48 if `x'==1995
			qui replace `var'=`var'*1.43 if `x'==1996
			qui replace `var'=`var'*1.40 if `x'==1997
			qui replace `var'=`var'*1.38 if `x'==1998
			qui replace `var'=`var'*1.35 if `x'==1999
			qui replace `var'=`var'*1.31 if `x'==2000
			qui replace `var'=`var'*1.27 if `x'==2001
			qui replace `var'=`var'*1.25 if `x'==2002
			qui replace `var'=`var'*1.22 if `x'==2003
			qui replace `var'=`var'*1.19 if `x'==2004
			qui replace `var'=`var'*1.15 if `x'==2005
			qui replace `var'=`var'*1.12 if `x'==2006
			qui replace `var'=`var'*1.08 if `x'==2007
			qui replace `var'=`var'*1.04 if `x'==2008
			qui replace `var'=`var'*1.05 if `x'==2009
			qui replace `var'=`var'*1.03 if `x'==2010
	}
		
		egen cum_wage_`x'=rowtotal(wage_*)
		gen t_cum_wage_`x'=cum_wage_`x'
		replace t_cum_wage_`x'= 1 if cum_wage_`x'==0
		gen ln_cum_wage_`x'=ln(t_cum_wage_`x')
		
		gen cum_wage_cond_`x'=cum_wage_`x' if cum_wage_`x'!=0
		gen ln_cum_wage_cond_`x'=ln(cum_wage_cond_`x')
		drop wage_* misswage_* t_cum_wage*
		
	}
	foreach x in cum_wage cum_wage_cond ln_cum_wage ln_cum_wage_cond  {
		rename `x'_`a' `x'_plus8
		rename `x'_`b' `x'_plus9
		rename `x'_`c' `x'_plus10
		rename `x'_`d' `x'_plus11
		rename `x'_`e' `x'_plus4
		rename `x'_`f' `x'_plus5
		rename `x'_`g' `x'_plus6
		rename `x'_`h' `x'_plus7
	}
	keep ssnrep year_9 cum_wage* cum_wage_cond* ln_cum_wage* ln_cum_wage_cond*
	save data/cum_earnings_`y'.dta, replace
}

set more off
forvalues y=2000(1)2000 {
	local a=`y'+8
	local b=`y'+9
	local c=`y'+10
	local e=`y'+4
	local f=`y'+5
	local g=`y'+6
	local h=`y'+7
	
	use data/sample_`y'.dta, clear
	
	foreach x in `a' `b' `c' `e' `f' `g' `h' {
	
		forvalues q=1(1)4 {
		merge 1:1 ssnrep using data/w`x'_q`q'.dta, keep(master match) nogen
		}
		egen misswage_`x'=rowmiss(wage_`x'_*)
		gen poswage_any_`x'=misswage_`x'!=4
		gen poswage_all_`x'=misswage_`x'==0
		gen poswage_total_`x'=4-(misswage_`x')
		foreach var of varlist wage_* {
			replace `var'=0 if `var'==.
		}
		* adjust to 2011 wages
		*SRC add years using BLS calculator
		foreach var of varlist wage_* {
			qui replace `var'=`var'*1.52 if `x'==1994
			qui replace `var'=`var'*1.48 if `x'==1995
			qui replace `var'=`var'*1.43 if `x'==1996
			qui replace `var'=`var'*1.40 if `x'==1997
			qui replace `var'=`var'*1.38 if `x'==1998
			qui replace `var'=`var'*1.35 if `x'==1999
			qui replace `var'=`var'*1.31 if `x'==2000
			qui replace `var'=`var'*1.27 if `x'==2001
			qui replace `var'=`var'*1.25 if `x'==2002
			qui replace `var'=`var'*1.22 if `x'==2003
			qui replace `var'=`var'*1.19 if `x'==2004
			qui replace `var'=`var'*1.15 if `x'==2005
			qui replace `var'=`var'*1.12 if `x'==2006
			qui replace `var'=`var'*1.08 if `x'==2007
			qui replace `var'=`var'*1.04 if `x'==2008
			qui replace `var'=`var'*1.05 if `x'==2009
			qui replace `var'=`var'*1.03 if `x'==2010
		}
		
		egen cum_wage_`x'=rowtotal(wage_*)
		gen t_cum_wage_`x'=cum_wage_`x'
		replace t_cum_wage_`x'= 1 if cum_wage_`x'==0
		gen ln_cum_wage_`x'=ln(t_cum_wage_`x')
		
		gen cum_wage_cond_`x'=cum_wage_`x' if cum_wage_`x'!=0
		gen ln_cum_wage_cond_`x'=ln(cum_wage_cond_`x')
		drop wage_* misswage_* t_cum_wage*
		
	}
	foreach x in cum_wage cum_wage_cond ln_cum_wage ln_cum_wage_cond {
		rename `x'_`a' `x'_plus8
		rename `x'_`b' `x'_plus9
		rename `x'_`c' `x'_plus10
		rename `x'_`e' `x'_plus4
		rename `x'_`f' `x'_plus5
		rename `x'_`g' `x'_plus6
		rename `x'_`h' `x'_plus7
	}
	keep ssnrep year_9 cum_wage* cum_wage_cond* ln_cum_wage* ln_cum_wage_cond*
	save data/cum_earnings_`y'.dta, replace
}
	
set more off
forvalues y=2001(1)2001 {
	local a=`y'+8
	local b=`y'+9
	local e=`y'+4
	local f=`y'+5
	local g=`y'+6
	local h=`y'+7
	
	use data/sample_`y'.dta, clear
	
	foreach x in `a' `b'  `e' `f' `g' `h' {
	
		forvalues q=1(1)4 {
		merge 1:1 ssnrep using data/w`x'_q`q'.dta, keep(master match) nogen
		}
		egen misswage_`x'=rowmiss(wage_`x'_*)
		gen poswage_any_`x'=misswage_`x'!=4
		gen poswage_all_`x'=misswage_`x'==0
		gen poswage_total_`x'=4-(misswage_`x')
		foreach var of varlist wage_* {
			replace `var'=0 if `var'==.
		}
		* adjust to 2011 wages
		*SRC add years using BLS calculator
		foreach var of varlist wage_* {
			qui replace `var'=`var'*1.52 if `x'==1994
			qui replace `var'=`var'*1.48 if `x'==1995
			qui replace `var'=`var'*1.43 if `x'==1996
			qui replace `var'=`var'*1.40 if `x'==1997
			qui replace `var'=`var'*1.38 if `x'==1998
			qui replace `var'=`var'*1.35 if `x'==1999
			qui replace `var'=`var'*1.31 if `x'==2000
			qui replace `var'=`var'*1.27 if `x'==2001
			qui replace `var'=`var'*1.25 if `x'==2002
			qui replace `var'=`var'*1.22 if `x'==2003
			qui replace `var'=`var'*1.19 if `x'==2004
			qui replace `var'=`var'*1.15 if `x'==2005
			qui replace `var'=`var'*1.12 if `x'==2006
			qui replace `var'=`var'*1.08 if `x'==2007
			qui replace `var'=`var'*1.04 if `x'==2008
			qui replace `var'=`var'*1.05 if `x'==2009
			qui replace `var'=`var'*1.03 if `x'==2010
		}
		
		egen cum_wage_`x'=rowtotal(wage_*)
		gen t_cum_wage_`x'=cum_wage_`x'
		replace t_cum_wage_`x'= 1 if cum_wage_`x'==0
		gen ln_cum_wage_`x'=ln(t_cum_wage_`x')
		
		gen cum_wage_cond_`x'=cum_wage_`x' if cum_wage_`x'!=0
		gen ln_cum_wage_cond_`x'=ln(cum_wage_cond_`x')
		drop wage_* misswage_* t_cum_wage*
		
	}
	foreach x in cum_wage cum_wage_cond ln_cum_wage ln_cum_wage_cond  {
		rename `x'_`a' `x'_plus8
		rename `x'_`b' `x'_plus9
		rename `x'_`e' `x'_plus4
		rename `x'_`f' `x'_plus5
		rename `x'_`g' `x'_plus6
		rename `x'_`h' `x'_plus7
	}
	keep ssnrep year_9  cum_wage* cum_wage_cond* ln_cum_wage* ln_cum_wage_cond*
	save data/cum_earnings_`y'.dta, replace
}

set more off
forvalues y=2002(1)2002 {
	local a=`y'+8
	local e=`y'+4
	local f=`y'+5
	local g=`y'+6
	local h=`y'+7
	
	use data/sample_`y'.dta, clear
	
	foreach x in `a' `e' `f' `g' `h' {
	
		forvalues q=1(1)4 {
		merge 1:1 ssnrep using data/w`x'_q`q'.dta, keep(master match) nogen
		}
		egen misswage_`x'=rowmiss(wage_`x'_*)
		gen poswage_any_`x'=misswage_`x'!=4
		gen poswage_all_`x'=misswage_`x'==0
		gen poswage_total_`x'=4-(misswage_`x')
		foreach var of varlist wage_* {
			replace `var'=0 if `var'==.
		}
		* adjust to 2011 wages
		*SRC add years using BLS calculator
		foreach var of varlist wage_* {
			qui replace `var'=`var'*1.52 if `x'==1994
			qui replace `var'=`var'*1.48 if `x'==1995
			qui replace `var'=`var'*1.43 if `x'==1996
			qui replace `var'=`var'*1.40 if `x'==1997
			qui replace `var'=`var'*1.38 if `x'==1998
			qui replace `var'=`var'*1.35 if `x'==1999
			qui replace `var'=`var'*1.31 if `x'==2000
			qui replace `var'=`var'*1.27 if `x'==2001
			qui replace `var'=`var'*1.25 if `x'==2002
			qui replace `var'=`var'*1.22 if `x'==2003
			qui replace `var'=`var'*1.19 if `x'==2004
			qui replace `var'=`var'*1.15 if `x'==2005
			qui replace `var'=`var'*1.12 if `x'==2006
			qui replace `var'=`var'*1.08 if `x'==2007
			qui replace `var'=`var'*1.04 if `x'==2008
			qui replace `var'=`var'*1.05 if `x'==2009
			qui replace `var'=`var'*1.03 if `x'==2010
		}
		
		egen cum_wage_`x'=rowtotal(wage_*)
		gen t_cum_wage_`x'=cum_wage_`x'
		replace t_cum_wage_`x'= 1 if cum_wage_`x'==0
		gen ln_cum_wage_`x'=ln(t_cum_wage_`x')
		
		gen cum_wage_cond_`x'=cum_wage_`x' if cum_wage_`x'!=0
		gen ln_cum_wage_cond_`x'=ln(cum_wage_cond_`x')
		drop wage_* misswage_* t_cum_wage*
		
		
	}
	foreach x in cum_wage cum_wage_cond ln_cum_wage ln_cum_wage_cond  {
		rename `x'_`a' `x'_plus8
		rename `x'_`e' `x'_plus4
		rename `x'_`f' `x'_plus5
		rename `x'_`g' `x'_plus6
		rename `x'_`h' `x'_plus7
	}
	keep ssnrep year_9   cum_wage* cum_wage_cond* ln_cum_wage* ln_cum_wage_cond*
	save data/cum_earnings_`y'.dta, replace
}

* STACK WAGE FILES
use data/cum_earnings_1994.dta, clear
forvalues y=1994(1)2002 {
	append using data/cum_earnings_`y'.dta
	}
sort ssnrep year_9
duplicates drop ssnrep, force
save data/wages_cumulative.dta, replace

} // end wage loop


*****baseline (8th) tests *************
if "$tests8"=="1"{
*from raw
local varkeep ssnrep campus wscode rscode mscode rawwrt sscwrt rawred rawmth tlired tlimth wrtstd redstd mthstd

use `varkeep' using ${source}/tea/assess/taas/taas_94/taas8_may_jun_1994.dta, clear
* Dealing with duplicates: drop missing IDs;  drop duplicates if there's another obs with valid score code
* Drop duplicate observations with rawscore = 0 if there's a nonzero raw score; 
* Randomly drop any further duplicates (~0.5% of each cohort)

drop if ssnrep==.
duplicates tag ssnrep, g(tag)
recode mscode 7=99
bys ssnrep: egen anyvalid = max(mscode==99)
drop if tag>0 & anyvalid==1 & mscode!=99

duplicates tag ssnrep, g(tag1)
bys ssnrep: egen anypositive = max(rawmth>0)
drop if tag1>0 & rawmth==0 & anypositive==1

duplicates tag ssnrep, g(tag2)
bys ssnrep: egen allzeros = mean(rawmth==0)
duplicates drop ssnrep if tag2>0 & allzeros==1, force

* among few remaining duplicates, just drop a random one
duplicates tag ssnrep, g(tag3)
gen random = rnormal()
sort ssnrep random
duplicates drop ssnrep, force

save data/taasg8_1994.dta, replace

use `varkeep' using ${source}/tea/assess/taas/taas_95/taas8_may_jun_1995.dta, clear

drop if ssnrep==.
duplicates tag ssnrep, g(tag)
recode mscode 7=99
bys ssnrep: egen anyvalid = max(mscode==99)
drop if tag>0 & anyvalid==1 & mscode!=99

duplicates tag ssnrep, g(tag1)
bys ssnrep: egen anypositive = max(rawmth>0)
drop if tag1>0 & rawmth==0 & anypositive==1

duplicates tag ssnrep, g(tag2)
bys ssnrep: egen allzeros = mean(rawmth==0)
duplicates drop ssnrep if tag2>0 & allzeros==1, force

* among few remaining duplicates, just drop a random one
duplicates tag ssnrep, g(tag3)
gen random = rnormal()
sort ssnrep random
duplicates drop ssnrep, force
save data/taasg8_1995.dta, replace

use `varkeep' using ${source}/tea/assess/taas/taas_96/taas8_may_jun_1996.dta, clear

drop if ssnrep==.
duplicates tag ssnrep, g(tag)
recode mscode 7=99
bys ssnrep: egen anyvalid = max(mscode==99)
drop if tag>0 & anyvalid==1 & mscode!=99

duplicates tag ssnrep, g(tag1)
bys ssnrep: egen anypositive = max(rawmth>0)
drop if tag1>0 & rawmth==0 & anypositive==1

duplicates tag ssnrep, g(tag2)
bys ssnrep: egen allzeros = mean(rawmth==0)
duplicates drop ssnrep if tag2>0 & allzeros==1, force

* among few remaining duplicates, just drop a random one
duplicates tag ssnrep, g(tag3)
gen random = rnormal()
sort ssnrep random
duplicates drop ssnrep, force
save data/taasg8_1996.dta, replace

use `varkeep' using ${source}/tea/assess/taas/taas_97/taas8_apr_jun_1997.dta, clear

drop if ssnrep==.
duplicates tag ssnrep, g(tag)
recode mscode 7=99
bys ssnrep: egen anyvalid = max(mscode==99)
drop if tag>0 & anyvalid==1 & mscode!=99

duplicates tag ssnrep, g(tag1)
bys ssnrep: egen anypositive = max(rawmth>0)
drop if tag1>0 & rawmth==0 & anypositive==1

duplicates tag ssnrep, g(tag2)
bys ssnrep: egen allzeros = mean(rawmth==0)
duplicates drop ssnrep if tag2>0 & allzeros==1, force

* among few remaining duplicates, just drop a random one
duplicates tag ssnrep, g(tag3)
gen random = rnormal()
sort ssnrep random
duplicates drop ssnrep, force
save data/taasg8_1997.dta, replace

use `varkeep' using ${source}/tea/assess/taas/taas_98/taas8_apr_jun_1998.dta, clear

drop if ssnrep==.
duplicates tag ssnrep, g(tag)
recode mscode 7=99
bys ssnrep: egen anyvalid = max(mscode==99)
drop if tag>0 & anyvalid==1 & mscode!=99

duplicates tag ssnrep, g(tag1)
bys ssnrep: egen anypositive = max(rawmth>0)
drop if tag1>0 & rawmth==0 & anypositive==1

duplicates tag ssnrep, g(tag2)
bys ssnrep: egen allzeros = mean(rawmth==0)
duplicates drop ssnrep if tag2>0 & allzeros==1, force

* among few remaining duplicates, just drop a random one
duplicates tag ssnrep, g(tag3)
gen random = rnormal()
sort ssnrep random
duplicates drop ssnrep, force
save data/taasg8_1998.dta, replace

use `varkeep' using ${source}/tea/assess/taas/taas_99/taas8_apr_jun_1999.dta, clear

drop if ssnrep==.
duplicates tag ssnrep, g(tag)
recode mscode 7=99
bys ssnrep: egen anyvalid = max(mscode==99)
drop if tag>0 & anyvalid==1 & mscode!=99

duplicates tag ssnrep, g(tag1)
bys ssnrep: egen anypositive = max(rawmth>0)
drop if tag1>0 & rawmth==0 & anypositive==1

duplicates tag ssnrep, g(tag2)
bys ssnrep: egen allzeros = mean(rawmth==0)
duplicates drop ssnrep if tag2>0 & allzeros==1, force

* among few remaining duplicates, just drop a random one
duplicates tag ssnrep, g(tag3)
gen random = rnormal()
sort ssnrep random
duplicates drop ssnrep, force
save data/taasg8_1999.dta, replace

use `varkeep' using ${source}/tea/assess/taas/taas_00/taas8_apr_2000.dta, clear

drop if ssnrep==.
duplicates tag ssnrep, g(tag)
recode mscode 7=99
bys ssnrep: egen anyvalid = max(mscode==99)
drop if tag>0 & anyvalid==1 & mscode!=99

duplicates tag ssnrep, g(tag1)
bys ssnrep: egen anypositive = max(rawmth>0)
drop if tag1>0 & rawmth==0 & anypositive==1

duplicates tag ssnrep, g(tag2)
bys ssnrep: egen allzeros = mean(rawmth==0)
duplicates drop ssnrep if tag2>0 & allzeros==1, force

* among few remaining duplicates, just drop a random one
duplicates tag ssnrep, g(tag3)
gen random = rnormal()
sort ssnrep random
duplicates drop ssnrep, force
save data/taasg8_2000.dta, replace

use `varkeep' using ${source}/tea/assess/taas/taas_01/taas8_apr_2001.dta, clear
compress
gsort ssnrep -rawmth
duplicates drop ssnrep, force
save data/taasg8_2001.dta, replace

use `varkeep' using ${source}/tea/assess/taas/taas_02/taas8_apr_2002.dta, clear

drop if ssnrep==.
duplicates tag ssnrep, g(tag)
recode mscode 7=99
bys ssnrep: egen anyvalid = max(mscode==99)
drop if tag>0 & anyvalid==1 & mscode!=99

duplicates tag ssnrep, g(tag1)
bys ssnrep: egen anypositive = max(rawmth>0)
drop if tag1>0 & rawmth==0 & anypositive==1

duplicates tag ssnrep, g(tag2)
bys ssnrep: egen allzeros = mean(rawmth==0)
duplicates drop ssnrep if tag2>0 & allzeros==1, force

* among few remaining duplicates, just drop a random one
duplicates tag ssnrep, g(tag3)
gen random = rnormal()
sort ssnrep random
duplicates drop ssnrep, force
save data/taasg8_2002.dta, replace


*** Run test files to get 8th grade raw scores and score codes
* always pulled from TAAS files since 2003 9th grade cohort still took TAAS in 8th grade

forvalues c = 1995(1)2002 {
local y = `c'-1
	use data/sample_`c'.dta, clear
	merge 1:1 ssnrep using data/taasg8_`y'.dta, keep(master match) nogen
	compress
	save data/cohort`c'_TAASg8.dta, replace
}

use data/cohort1995_TAASg8.dta
forvalues c = 1996(1)2002 {
	append using data/cohort`c'_TAASg8.dta
}
drop *std
rename tlired rscale
rename tlimth mscale
rename sscwrt wscale
foreach v in wscode rscode mscode rawwrt rawred rawmth mscale rscale wscale {
rename `v' g8`v'
}
compress
*120 dups, just force drop randomly
drop tag  anyvalid tag1 anypositive tag2 allzeros tag3 random
sample 1, count by(ssnrep)
save data/testsg8.dta, replace
}
**************TEST SCORES
if "$tests"=="1" {
****Number of times taking
************* Create test score files
*** start from raw to replace Maya's code and create number of times take test
*O:\data\tsp_erc\tea\assess\taas\taas_95
foreach admin in may_1995 oct_1994  mar_1995 jul_1995 {
  use ssnrep tlimth tlired sscw mscode rscode wscode rawr rawm raww using ///
		${source}tea\assess\taas\taas_95\taasx_`admin'", clear
	count
 tempfile `admin'
 save "``admin''", replace
 }
 foreach admin in oct_1995 may_1996 mar_1996 jul_1996  {
  use ssnrep tlimth tlired sscw mscode rscode wscode rawr rawm raww using ///
		${source}tea\assess\taas\taas_96\taasx_`admin'", clear
	count
 tempfile `admin'
 save "``admin''", replace
 }
 foreach admin in oct_1996 jul_1997 feb_1997 apr_1997  {
  use ssnrep tlimth tlired sscw mscode rscode wscode rawr rawm raww using ///
		${source}tea\assess\taas\taas_97\taasx_`admin'", clear
	count
 tempfile `admin'
 save "``admin''", replace
 }
 foreach admin in oct_1997 mar_1998 jul_1998 apr_1998  {
  use ssnrep tlimth tlired sscw mscode rscode wscode rawr rawm raww using ///
		${source}tea\assess\taas\taas_98\taasx_`admin'", clear
	count
 tempfile `admin'
 save "``admin''", replace
 }
 foreach admin in oct_1998 jul_1999 feb_1999 apr_1999 {
  use ssnrep tlimth tlired sscw mscode rscode wscode rawr rawm raww using ///
		${source}tea\assess\taas\taas_99\taasx_`admin'", clear
	count
 tempfile `admin'
 save "``admin''", replace
 }
 foreach admin in oct_1999 may_2000 jul_2000 feb_2000 {
  use ssnrep tlimth tlired sscw mscode rscode wscode rawr rawm raww using ///
		${source}tea\assess\taas\taas_00\taasx_`admin'", clear
	count
 tempfile `admin'
 save "``admin''", replace
 }
 foreach admin in oct_2000 may_2001 jul_2001 feb_2001 {
  use ssnrep tlimth tlired sscw mscode rscode wscode rawr rawm raww using ///
		${source}tea\assess\taas\taas_01\taasx_`admin'", clear
	count
 tempfile `admin'
 save "``admin''", replace
 }
 foreach admin in oct_2001 may_2002 jul_2002 feb_2002 {
  use ssnrep tlimth tlired sscw mscode rscode wscode rawr rawm raww using ///
		${source}tea\assess\taas\taas_02\taasx_`admin'", clear
	count
 tempfile `admin'
 save "``admin''", replace
 }
 
  
 use "`oct_1994'", clear
  g admin="oct_1994"

 foreach next in   may_1995 mar_1995 jul_1995 oct_1995 may_1996 mar_1996 jul_1996 ///
	oct_1996 jul_1997 feb_1997 apr_1997 oct_1997 mar_1998 jul_1998 apr_1998 ///
	oct_1998 jul_1999 feb_1999 apr_1999 oct_1999 may_2000 jul_2000 feb_2000 ///
	oct_2000 may_2001 jul_2001 feb_2001 oct_2001 may_2002 jul_2002 feb_2002 {
	append using "``next''"
	replace admin="`next'" if admin==""
	compress
	}
 	  drop if wscode==1 &mscode==1&rscode==1
	  drop *code
	duplicates drop
	ren tlimth mscale
	ren tlired rscale
	ren sscw wscale
	
	*do by each subject
	foreach s in m r w{
	preserve
		keep ssnrep admin `s'scale raw`s'
		drop if raw==0
		duplicates drop
		bys ssnrep : egen `s'_attempt=count(raw`s')
		replace `s'_attempt=8 if `s'_attempt>=8
		if "`s'"=="m"{
			g pass=(`s'scale>=70) 
			}
		if "`s'"=="r"{
			g pass=(`s'scale>=70) 
			}
		if "`s'"=="w"{
			g pass=(`s'scale>=1500) 
			}
		bys ssnrep : egen `s'_ever_pass=max(pass)
		keep ssnrep `s'_attempt `s'_ever_pass
		duplicates drop
		save data/`s'_moretest.dta, replace
	restore
		}
 	use data/m_moretest.dta, clear
	merge 1:1 ssnrep using data/r_moretest.dta, nogen
	merge 1:1 ssnrep using data/w_moretest.dta, nogen
	compress
		save data/moretests.dta, replace
 

************* Create test score files
*get 10th grade files
local varkeep tlimth tlired   ssnrep  grade year  wscode rscode mscode wretst rretst mretst rawwrt sscwrt minwrt rawred minred rawmth minmth  

* 1994
use `varkeep'  using ${source}tea\assess\taas\taas_94/taasx_mar_1994.dta, clear
compress
tempfile taas_1994
save "`taas_1994'", replace

* 1995
use `varkeep' using ${source}tea\assess\taas\taas_95/taasx_mar_1995.dta, clear
compress
tempfile taas_1995
save "`taas_1995'", replace
* 1996
use `varkeep'  using ${source}tea\assess\taas\taas_96/taasx_mar_1996.dta, clear
compress
tempfile taas_1996
save "`taas_1996'", replace
* 1997
use `varkeep'  using ${source}tea\assess\taas\taas_97/taasx_feb_1997.dta, clear
compress
tempfile taas_1997
save "`taas_1997'", replace
* 1998
use `varkeep'  using ${source}tea\assess\taas\taas_98/taasx_mar_1998.dta, clear
compress
tempfile taas_1998
save "`taas_1998'", replace
*1999
use `varkeep'  using ${source}tea\assess\taas\taas_99/taasx_feb_1999.dta, clear
compress
tempfile taas_1999
save "`taas_1999'", replace
*2000
use `varkeep'  using ${source}tea\assess\taas\taas_00/taasx_feb_2000.dta, clear
tempfile taas_2000
save "`taas_2000'", replace
* 2001
use `varkeep' using  ${source}tea\assess\taas\taas_01/taasx_feb_2001.dta, clear
tempfile taas_2001
save "`taas_2001'", replace
* 2002
use `varkeep' using  ${source}tea\assess\taas\taas_02/taasx_feb_2002.dta, clear
tempfile taas_2002
save "`taas_2002'", replace


* Append short datasets
*local temp O:/projects/LTSO/temp_TAAS
use "`taas_1994'", clear
forvalues i=1995/2002{
append using "`taas_`i''", force
}


**3. Check for and get rid of duplicates 
* drop duplicates on all vars
duplicates drop
* examine and drop dups on ssnrep grade year month - .006% of total, so drop them
*duplicates drop ssnrep grade year month, force
* now drop rest that have ssnrep year duplicates (7445 more of >10M)
duplicates drop ssnrep year, force

* Now start recoding test variables in prep for analysis

**4. Create flags for retest.
* mretst, rretst, and wretst =2 when students are retested.
* students can retest in just one subject;  note that some students in grade 11 and 12 are not retests.

foreach i in m r w{
gen retestflag_`i'=0
replace retestflag_`i'=1 if `i'retst==2
label variable retestflag_`i' "=1 if retest"
}


**5. Uses score code variable to separate kids who really got 0s from those who didn't take the test.
* Kids who did not take test are coded as 0, but some kids really did get a 0
* Replace kids who have a 0 and do not have a score code=score as .
* note that there are kids who have scores but are coded as LEP or ARD exempt
* keeping these kids' scores in but we may want to take out when we calculate ratings

rename rscode redscode
rename mscode mthscode
rename wscode wrtscode

foreach i in wrt red mth{
replace raw`i'=. if `i'scode~=7 & raw`i'==0
egen maxraw`i'=max(raw`i'), by(grade)
}
foreach i in red mth{
replace tli`i'=. if `i'scode~=7 & raw`i'==0
}
keep ssnrep year rawred rawmth rawwrt wrtscode redscode mthscode tli*  sscwrt
save data/taas_1994_2002_short.dta, replace


forvalues y=1994(1)2002 {
		use data/taas_1994_2002_short.dta, clear
		keep if year==`y' 
		drop  year
		save data/taas_`y'_10.dta, replace
}

*** Run test files to get 10th grade raw scores and score codes
forvalues c = 1994(1)1999 {
local y = `c'+1
	use data/sample_`c'.dta, clear
	merge 1:1 ssnrep using data/taas_`y'_10.dta, keep(master match) nogen
	rename mthscode mscode
	rename redscode rscode
	rename wrtscode wscode
	rename tlimth mscale
	rename tlired rescale
	ren sscwrt wscale
	tempfile cohort`c'_raw
	save "`cohort`c'_raw'", replace
}


use "`cohort1994_raw'"
forvalues c = 1995(1)1999 {
	append using "`cohort`c'_raw'"
}
*40 dups, just force drop randomly
sample 1, count by(ssnrep)
save data/testsg10.dta, replace

}
******* AEIS ***********
if "$aeis"=="1"{
*aeis panel
foreach y of numlist 1994/2002{
use  campus cname c_rating using O:\data\non_erc\public\AEIS\campus\aeiscamp`y'.dta, clear
g  rated_year=`y'
tempfile aeis`y'
save "`aeis`y''", replace
}

use "`aeis1994'", clear
foreach y of numlist 1995/2002{
	append using "`aeis`y''"
	}
ren c_rating  ratingAEIS_cons
*explicitly only keep schools that Maya has designated at "sample schools"
g sample = 0
#delimit ; 
*explicitly only keep schools that Maya has designated at "sample schools"
qui replace sample=1 if campus==175910001& rated_year ==2003; qui replace sample=1 if campus==140904001& rated_year ==1998; qui replace sample=1 if campus==101912023& rated_year ==2007; qui replace sample=1 if campus==249904001& rated_year ==1994; qui replace sample=1 if campus==246912001& rated_year ==1995; qui replace sample=1 if campus==249904001& rated_year ==2000; qui replace sample=1 if campus==79907005& rated_year ==2001; qui replace sample=1 if campus==54901001& rated_year ==2000; qui replace sample=1 if campus==185902001& rated_year ==2004; qui replace sample=1 if campus==79907005& rated_year ==1997; qui replace sample=1 if campus==57905016& rated_year ==2007; qui replace sample=1 if campus==94903001& rated_year ==2005; qui replace sample=1 if campus==69901001& rated_year ==1999; qui replace sample=1 if campus==101912018& rated_year ==2007; qui replace sample=1 if campus==54901001& rated_year ==1999; qui replace sample=1 if campus==101912003& rated_year ==2005; qui replace sample=1 if campus==54901001& rated_year ==1998; qui replace sample=1 if campus==8903001& rated_year ==2001; qui replace sample=1 if campus==237905002& rated_year ==1998; qui replace sample=1 if campus==128901001& rated_year ==2003; qui replace sample=1 if campus==57905003& rated_year ==2005; qui replace sample=1 if campus==166903001& rated_year ==2005; qui replace sample=1 if campus==241901001& rated_year ==1996; qui replace sample=1 if campus==241901001& rated_year ==1994; qui replace sample=1 if campus==3902001& rated_year ==2006; qui replace sample=1 if campus==61914001& rated_year ==2002; qui replace sample=1 if campus==18904001& rated_year ==1998; qui replace sample=1 if campus==159901001& rated_year ==1996; qui replace sample=1 if campus==52901001& rated_year ==2001; qui replace sample=1 if campus==227909001& rated_year ==2003; qui replace sample=1 if campus==246904001& rated_year ==2007; qui replace sample=1 if campus==77901001& rated_year ==1995; qui replace sample=1 if campus==186903001& rated_year ==1995; qui replace sample=1 if campus==123905001& rated_year ==2006; qui replace sample=1 if campus==108905001& rated_year ==1995; qui replace sample=1 if campus==201907001& rated_year ==2006; qui replace sample=1 if campus==220914001& rated_year ==2000; qui replace sample=1 if campus==101912003& rated_year ==1994; qui replace sample=1 if campus==220906002& rated_year ==1996; qui replace sample=1 if campus==57905012& rated_year ==2004; qui replace sample=1 if campus==76904001& rated_year ==1996; qui replace sample=1 if campus==234907002& rated_year ==2002; qui replace sample=1 if campus==220906002& rated_year ==1995; qui replace sample=1 if campus==114902001& rated_year ==2005; qui replace sample=1 if campus==18904001& rated_year ==2006; qui replace sample=1 if campus==249903001& rated_year ==2001; qui replace sample=1 if campus==8903001& rated_year ==2000; qui replace sample=1 if campus==127906001& rated_year ==2005; qui replace sample=1 if campus==74907001& rated_year ==2004; qui replace sample=1 if campus==15907006& rated_year ==1998; qui replace sample=1 if campus==208902001& rated_year ==2004; qui replace sample=1 if campus==186903001& rated_year ==2001; qui replace sample=1 if campus==15914001& rated_year ==1998; qui replace sample=1 if campus==93903001& rated_year ==2001; qui replace sample=1 if campus==5901001& rated_year ==1999; qui replace sample=1 if campus==166905001& rated_year ==1995; qui replace sample=1 if campus==5901001& rated_year ==2006; qui replace sample=1 if campus==143903001& rated_year ==2002; qui replace sample=1 if campus==126906001& rated_year ==2003; qui replace sample=1 if campus==147902001& rated_year ==1999; qui replace sample=1 if campus==104901001& rated_year ==1998; qui replace sample=1 if campus==249904001& rated_year ==2002; qui replace sample=1 if campus==139909002& rated_year ==1994; qui replace sample=1 if campus==208902001& rated_year ==2000; qui replace sample=1 if campus==68901047& rated_year ==1998; qui replace sample=1 if campus==227901011& rated_year ==1995; qui replace sample=1 if campus==212905005& rated_year ==1998; qui replace sample=1 if campus==234907002& rated_year ==1998; qui replace sample=1 if campus==61907001& rated_year ==2000; qui replace sample=1 if campus==198901001& rated_year ==1997; qui replace sample=1 if campus==147902001& rated_year ==1997; qui replace sample=1 if campus==227912001& rated_year ==1996; qui replace sample=1 if campus==77901001& rated_year ==1997; qui replace sample=1 if campus==208902001& rated_year ==2003; qui replace sample=1 if campus==159901001& rated_year ==2007; qui replace sample=1 if campus==8903001& rated_year ==2008; qui replace sample=1 if campus==57905012& rated_year ==1999; qui replace sample=1 if campus==74909001& rated_year ==1998; qui replace sample=1 if campus==79907005& rated_year ==1998; qui replace sample=1 if campus==18904001& rated_year ==2007; qui replace sample=1 if campus==101925001& rated_year ==2002; qui replace sample=1 if campus==57905016& rated_year ==1995; qui replace sample=1 if campus==208902001& rated_year ==2007; qui replace sample=1 if campus==128901001& rated_year ==1997; qui replace sample=1 if campus==101909003& rated_year ==2001; qui replace sample=1 if campus==101912023& rated_year ==1994; qui replace sample=1 if campus==166903001& rated_year ==2007; qui replace sample=1 if campus==220919001& rated_year ==1999; qui replace sample=1 if campus==198901001& rated_year ==2006; qui replace sample=1 if campus==185902001& rated_year ==2000; qui replace sample=1 if campus==15914001& rated_year ==1994; qui replace sample=1 if campus==15914001& rated_year ==1995; qui replace sample=1 if campus==15914001& rated_year ==2004; qui replace sample=1 if campus==1902001& rated_year ==1999; qui replace sample=1 if campus==15914001& rated_year ==2006; qui replace sample=1 if campus==74907001& rated_year ==1997; qui replace sample=1 if campus==185902001& rated_year ==2001; qui replace sample=1 if campus==108905001& rated_year ==2003; qui replace sample=1 if campus==57922001& rated_year ==1996; qui replace sample=1 if campus==212905005& rated_year ==1997; qui replace sample=1 if campus==108905001& rated_year ==2007; qui replace sample=1 if campus==114902001& rated_year ==2001; qui replace sample=1 if campus==220919001& rated_year ==1998; qui replace sample=1 if campus==246904001& rated_year ==2002; qui replace sample=1 if campus==230901001& rated_year ==2002; qui replace sample=1 if campus==3902001& rated_year ==1999; qui replace sample=1 if campus==126904001& rated_year ==1995; qui replace sample=1 if campus==61907001& rated_year ==2006; qui replace sample=1 if campus==108905001& rated_year ==1996; qui replace sample=1 if campus==126906001& rated_year ==2001; qui replace sample=1 if campus==3902001& rated_year ==1997; qui replace sample=1 if campus==61903001& rated_year ==1998; qui replace sample=1 if campus==160901001& rated_year ==2004; qui replace sample=1 if campus==15907006& rated_year ==1996; qui replace sample=1 if campus==227912001& rated_year ==1994; qui replace sample=1 if campus==120902001& rated_year ==1999; qui replace sample=1 if campus==246906001& rated_year ==2005; qui replace sample=1 if campus==77901001& rated_year ==2000; qui replace sample=1 if campus==227909001& rated_year ==2008; qui replace sample=1 if campus==227912001& rated_year ==2000; qui replace sample=1 if campus==227912001& rated_year ==1997; qui replace sample=1 if campus==185902001& rated_year ==2003; qui replace sample=1 if campus==101925001& rated_year ==1996; qui replace sample=1 if campus==69901001& rated_year ==2006; qui replace sample=1 if campus==71909001& rated_year ==2007; qui replace sample=1 if campus==227909001& rated_year ==2002; qui replace sample=1 if campus==230901001& rated_year ==2001; qui replace sample=1 if campus==246905001& rated_year ==2003; qui replace sample=1 if campus==71909001& rated_year ==1997; qui replace sample=1 if campus==76904001& rated_year ==2008; qui replace sample=1 if campus==199901001& rated_year ==2000; qui replace sample=1 if campus==249904001& rated_year ==1995; qui replace sample=1 if campus==127906001& rated_year ==2003; qui replace sample=1 if campus==166905001& rated_year ==2008; qui replace sample=1 if campus==246912001& rated_year ==1994; qui replace sample=1 if campus==88902001& rated_year ==1995; qui replace sample=1 if campus==230901001& rated_year ==2000; qui replace sample=1 if campus==18904001& rated_year ==1996; qui replace sample=1 if campus==147902001& rated_year ==2003; qui replace sample=1 if campus==159901001& rated_year ==2000; qui replace sample=1 if campus==240904001& rated_year ==2004; qui replace sample=1 if campus==104901001& rated_year ==2003; qui replace sample=1 if campus==246906001& rated_year ==1998; qui replace sample=1 if campus==199901001& rated_year ==2004; qui replace sample=1 if campus==101912023& rated_year ==2002; qui replace sample=1 if campus==220914001& rated_year ==2002; qui replace sample=1 if campus==71905008& rated_year ==2003; qui replace sample=1 if campus==249902001& rated_year ==1997; qui replace sample=1 if campus==120902001& rated_year ==2002; qui replace sample=1 if campus==198901001& rated_year ==2008; qui replace sample=1 if campus==104901001& rated_year ==2007; qui replace sample=1 if campus==57905012& rated_year ==2000; qui replace sample=1 if campus==140907001& rated_year ==2005; qui replace sample=1 if campus==126904001& rated_year ==2002; qui replace sample=1 if campus==127906001& rated_year ==2007; qui replace sample=1 if campus==18904001& rated_year ==1997; qui replace sample=1 if campus==112906001& rated_year ==1997; qui replace sample=1 if campus==5901001& rated_year ==2007; qui replace sample=1 if campus==15907006& rated_year ==2008; qui replace sample=1 if campus==159901001& rated_year ==2001; qui replace sample=1 if campus==123905001& rated_year ==1995; qui replace sample=1 if campus==71909001& rated_year ==2008; qui replace sample=1 if campus==128901001& rated_year ==1994; qui replace sample=1 if campus==246912001& rated_year ==2002; qui replace sample=1 if campus==71909001& rated_year ==1999; qui replace sample=1 if campus==237905002& rated_year ==2006; qui replace sample=1 if campus==101925001& rated_year ==2007; qui replace sample=1 if campus==114902001& rated_year ==2007; qui replace sample=1 if campus==128901001& rated_year ==1996; qui replace sample=1 if campus==227909001& rated_year ==2004; qui replace sample=1 if campus==254902001& rated_year ==1994; qui replace sample=1 if campus==140904001& rated_year ==2001; qui replace sample=1 if campus==101909003& rated_year ==1996; qui replace sample=1 if campus==75903001& rated_year ==2002; qui replace sample=1 if campus==94903001& rated_year ==1994; qui replace sample=1 if campus==18904001& rated_year ==2005; qui replace sample=1 if campus==52901001& rated_year ==2003; qui replace sample=1 if campus==94903001& rated_year ==2002; qui replace sample=1 if campus==5901001& rated_year ==1994; qui replace sample=1 if campus==101921001& rated_year ==1994; qui replace sample=1 if campus==52901001& rated_year ==2002; qui replace sample=1 if campus==126906001& rated_year ==1995; qui replace sample=1 if campus==123905001& rated_year ==1997; qui replace sample=1 if campus==8903001& rated_year ==2005; qui replace sample=1 if campus==175910001& rated_year ==2006; qui replace sample=1 if campus==69901001& rated_year ==1998; qui replace sample=1 if campus==249902001& rated_year ==1994; qui replace sample=1 if campus==119903001& rated_year ==1996; qui replace sample=1 if campus==57905016& rated_year ==1996; qui replace sample=1 if campus==123905001& rated_year ==2005; qui replace sample=1 if campus==166903001& rated_year ==2004; qui replace sample=1 if campus==139909002& rated_year ==2006; qui replace sample=1 if campus==57905003& rated_year ==2008; qui replace sample=1 if campus==147902001& rated_year ==2007; qui replace sample=1 if campus==11904002& rated_year ==2007; qui replace sample=1 if campus==127906001& rated_year ==1995; qui replace sample=1 if campus==69901001& rated_year ==2005; qui replace sample=1 if campus==52901001& rated_year ==1996; qui replace sample=1 if campus==166905001& rated_year ==2007; qui replace sample=1 if campus==74907001& rated_year ==1995; qui replace sample=1 if campus==221904001& rated_year ==2001; qui replace sample=1 if campus==249903001& rated_year ==2000; qui replace sample=1 if campus==114902001& rated_year ==2002; qui replace sample=1 if campus==226903001& rated_year ==2007; qui replace sample=1 if campus==201907001& rated_year ==1994; qui replace sample=1 if campus==57922001& rated_year ==1999; qui replace sample=1 if campus==70911001& rated_year ==1997; qui replace sample=1 if campus==1902001& rated_year ==2004; qui replace sample=1 if campus==120902001& rated_year ==2005; qui replace sample=1 if campus==15914001& rated_year ==1997; qui replace sample=1 if campus==159901001& rated_year ==1998; qui replace sample=1 if campus==226903001& rated_year ==2001; qui replace sample=1 if campus==71909001& rated_year ==2002; qui replace sample=1 if campus==227912001& rated_year ==1995; qui replace sample=1 if campus==246904001& rated_year ==2001; qui replace sample=1 if campus==221904001& rated_year ==1997; qui replace sample=1 if campus==199901001& rated_year ==1995; qui replace sample=1 if campus==220919001& rated_year ==2006; qui replace sample=1 if campus==246912001& rated_year ==2004; qui replace sample=1 if campus==93903001& rated_year ==1996; qui replace sample=1 if campus==75903001& rated_year ==2004; qui replace sample=1 if campus==120902001& rated_year ==2003; qui replace sample=1 if campus==221904001& rated_year ==2008; qui replace sample=1 if campus==249902001& rated_year ==1999; qui replace sample=1 if campus==221904001& rated_year ==1995; qui replace sample=1 if campus==114902001& rated_year ==2003; qui replace sample=1 if campus==71905008& rated_year ==1994; qui replace sample=1 if campus==147902001& rated_year ==1994; qui replace sample=1 if campus==123905001& rated_year ==1998; qui replace sample=1 if campus==61903001& rated_year ==1994; qui replace sample=1 if campus==57905003& rated_year ==2003; qui replace sample=1 if campus==74907001& rated_year ==2001; qui replace sample=1 if campus==241901001& rated_year ==2001; qui replace sample=1 if campus==89903001& rated_year ==1998; qui replace sample=1 if campus==230901001& rated_year ==2007; qui replace sample=1 if campus==149902001& rated_year ==2004; qui replace sample=1 if campus==94903001& rated_year ==2000; qui replace sample=1 if campus==101925001& rated_year ==2005; qui replace sample=1 if campus==128901001& rated_year ==2000; qui replace sample=1 if campus==126906001& rated_year ==2006; qui replace sample=1 if campus==147902001& rated_year ==2008; qui replace sample=1 if campus==57905003& rated_year ==2006; qui replace sample=1 if campus==15907006& rated_year ==2000; qui replace sample=1 if campus==166905001& rated_year ==1994; qui replace sample=1 if campus==57922001& rated_year ==2008; qui replace sample=1 if campus==220919001& rated_year ==2002; qui replace sample=1 if campus==116905002& rated_year ==1997; qui replace sample=1 if campus==143903001& rated_year ==1994; qui replace sample=1 if campus==140904001& rated_year ==2008; qui replace sample=1 if campus==31901127& rated_year ==1997; qui replace sample=1 if campus==31901127& rated_year ==2003; qui replace sample=1 if campus==57905003& rated_year ==1997; qui replace sample=1 if campus==67907001& rated_year ==2001; qui replace sample=1 if campus==230901001& rated_year ==2004; qui replace sample=1 if campus==101912003& rated_year ==2008; qui replace sample=1 if campus==86901001& rated_year ==1998; qui replace sample=1 if campus==57922001& rated_year ==2002; qui replace sample=1 if campus==227909001& rated_year ==2006; qui replace sample=1 if campus==227909001& rated_year ==1998; qui replace sample=1 if campus==220919001& rated_year ==2007; qui replace sample=1 if campus==127906001& rated_year ==1998; qui replace sample=1 if campus==230901001& rated_year ==2003; qui replace sample=1 if campus==43912001& rated_year ==1997; qui replace sample=1 if campus==188902001& rated_year ==1996; qui replace sample=1 if campus==119903001& rated_year ==2005; qui replace sample=1 if campus==139909002& rated_year ==2005; qui replace sample=1 if campus==116905002& rated_year ==2005; qui replace sample=1 if campus==246904001& rated_year ==1998; qui replace sample=1 if campus==160901001& rated_year ==1994; qui replace sample=1 if campus==3902001& rated_year ==2004; qui replace sample=1 if campus==120902001& rated_year ==2001; qui replace sample=1 if campus==3902001& rated_year ==2003; qui replace sample=1 if campus==220914001& rated_year ==2003; qui replace sample=1 if campus==149902001& rated_year ==2006; qui replace sample=1 if campus==227909001& rated_year ==1994; qui replace sample=1 if campus==227909001& rated_year ==1997; qui replace sample=1 if campus==119903001& rated_year ==2004; qui replace sample=1 if campus==3902001& rated_year ==1995; qui replace sample=1 if campus==186903001& rated_year ==2007; qui replace sample=1 if campus==230901001& rated_year ==1994; qui replace sample=1 if campus==147902001& rated_year ==2006; qui replace sample=1 if campus==101912018& rated_year ==2003; qui replace sample=1 if campus==1902001& rated_year ==2007; qui replace sample=1 if campus==249904001& rated_year ==1998; qui replace sample=1 if campus==143903001& rated_year ==1998; qui replace sample=1 if campus==101909003& rated_year ==2007; qui replace sample=1 if campus==52901001& rated_year ==1999; qui replace sample=1 if campus==199901001& rated_year ==1996; qui replace sample=1 if campus==74909001& rated_year ==1999; qui replace sample=1 if campus==220914001& rated_year ==1995; qui replace sample=1 if campus==11904002& rated_year ==2002; qui replace sample=1 if campus==113901002& rated_year ==2008; qui replace sample=1 if campus==212905005& rated_year ==1995; qui replace sample=1 if campus==101912003& rated_year ==2003; qui replace sample=1 if campus==199901001& rated_year ==1998; qui replace sample=1 if campus==112906001& rated_year ==2002; qui replace sample=1 if campus==186903001& rated_year ==1998; qui replace sample=1 if campus==61903001& rated_year ==1995; qui replace sample=1 if campus==113901002& rated_year ==2005; qui replace sample=1 if campus==116905002& rated_year ==2003; qui replace sample=1 if campus==70911001& rated_year ==2005; qui replace sample=1 if campus==159901001& rated_year ==2008; qui replace sample=1 if campus==31901127& rated_year ==2004; qui replace sample=1 if campus==149902001& rated_year ==2001; qui replace sample=1 if campus==226903001& rated_year ==2002; qui replace sample=1 if campus==221904001& rated_year ==2005; qui replace sample=1 if campus==166905001& rated_year ==2004; qui replace sample=1 if campus==68901047& rated_year ==2001; qui replace sample=1 if campus==61903001& rated_year ==2004; qui replace sample=1 if campus==57909008& rated_year ==1999; qui replace sample=1 if campus==18904001& rated_year ==2003; qui replace sample=1 if campus==61914001& rated_year ==1998; qui replace sample=1 if campus==166905001& rated_year ==1998; qui replace sample=1 if campus==57905012& rated_year ==2002; qui replace sample=1 if campus==94903001& rated_year ==1995; qui replace sample=1 if campus==220906002& rated_year ==1994; qui replace sample=1 if campus==140904001& rated_year ==2006; qui replace sample=1 if campus==230901001& rated_year ==1998; qui replace sample=1 if campus==61907001& rated_year ==1995; qui replace sample=1 if campus==89903001& rated_year ==2007; qui replace sample=1 if campus==114902001& rated_year ==2000; qui replace sample=1 if campus==140907001& rated_year ==1999; qui replace sample=1 if campus==93903001& rated_year ==2005; qui replace sample=1 if campus==249902001& rated_year ==1996; qui replace sample=1 if campus==67907001& rated_year ==1999; qui replace sample=1 if campus==220914001& rated_year ==2005; qui replace sample=1 if campus==237905002& rated_year ==1995; qui replace sample=1 if campus==192901001& rated_year ==2000; qui replace sample=1 if campus==8903001& rated_year ==2007; qui replace sample=1 if campus==241901001& rated_year ==2007; qui replace sample=1 if campus==67907001& rated_year ==2003; qui replace sample=1 if campus==1902001& rated_year ==1995; qui replace sample=1 if campus==171902001& rated_year ==2006; qui replace sample=1 if campus==5901001& rated_year ==2001; qui replace sample=1 if campus==70911001& rated_year ==2002; qui replace sample=1 if campus==86901001& rated_year ==2002; qui replace sample=1 if campus==249903001& rated_year ==2007; qui replace sample=1 if campus==123905001& rated_year ==2008; qui replace sample=1 if campus==199901001& rated_year ==2007; qui replace sample=1 if campus==5901001& rated_year ==1996; qui replace sample=1 if campus==249903001& rated_year ==1997; qui replace sample=1 if campus==61903001& rated_year ==2005; qui replace sample=1 if campus==220914001& rated_year ==1996; qui replace sample=1 if campus==227901011& rated_year ==1994; qui replace sample=1 if campus==76904001& rated_year ==2007; qui replace sample=1 if campus==159901001& rated_year ==1995; qui replace sample=1 if campus==89903001& rated_year ==2000; qui replace sample=1 if campus==93903001& rated_year ==2002; qui replace sample=1 if campus==230905001& rated_year ==1997; qui replace sample=1 if campus==140907001& rated_year ==2008; qui replace sample=1 if campus==126904001& rated_year ==2003; qui replace sample=1 if campus==160901001& rated_year ==2000; qui replace sample=1 if campus==11904002& rated_year ==2005; qui replace sample=1 if campus==139909002& rated_year ==2004; qui replace sample=1 if campus==201907001& rated_year ==1995; qui replace sample=1 if campus==31901127& rated_year ==2000; qui replace sample=1 if campus==112906001& rated_year ==2001; qui replace sample=1 if campus==234907002& rated_year ==2000; qui replace sample=1 if campus==52901001& rated_year ==1994; qui replace sample=1 if campus==43912001& rated_year ==1999; qui replace sample=1 if campus==43912001& rated_year ==2004; qui replace sample=1 if campus==237905002& rated_year ==1999; qui replace sample=1 if campus==57905016& rated_year ==2005; qui replace sample=1 if campus==112906001& rated_year ==1998; qui replace sample=1 if campus==246906001& rated_year ==2004; qui replace sample=1 if campus==119903001& rated_year ==2003; qui replace sample=1 if campus==108905001& rated_year ==2004; qui replace sample=1 if campus==249902001& rated_year ==2001; qui replace sample=1 if campus==230905001& rated_year ==2001; qui replace sample=1 if campus==186903001& rated_year ==2008; qui replace sample=1 if campus==43912001& rated_year ==2000; qui replace sample=1 if campus==221904001& rated_year ==2000; qui replace sample=1 if campus==208902001& rated_year ==1999; qui replace sample=1 if campus==226903001& rated_year ==1998; qui replace sample=1 if campus==43912001& rated_year ==2008; qui replace sample=1 if campus==254902001& rated_year ==2001; qui replace sample=1 if campus==15907006& rated_year ==1995; qui replace sample=1 if campus==74907001& rated_year ==2008; qui replace sample=1 if campus==166903001& rated_year ==1998; qui replace sample=1 if campus==237905002& rated_year ==2005; qui replace sample=1 if campus==89903001& rated_year ==2005; qui replace sample=1 if campus==149902001& rated_year ==1999; qui replace sample=1 if campus==74909001& rated_year ==2001; qui replace sample=1 if campus==3902001& rated_year ==2000; qui replace sample=1 if campus==69901001& rated_year ==2004; qui replace sample=1 if campus==43912001& rated_year ==1994; qui replace sample=1 if campus==57905003& rated_year ==2000; qui replace sample=1 if campus==227912001& rated_year ==2003; qui replace sample=1 if campus==226903001& rated_year ==1994; qui replace sample=1 if campus==254902001& rated_year ==2000; qui replace sample=1 if campus==89903001& rated_year ==1996; qui replace sample=1 if campus==61914001& rated_year ==2000; qui replace sample=1 if campus==91909001& rated_year ==1999; qui replace sample=1 if campus==159901001& rated_year ==1994; qui replace sample=1 if campus==79907005& rated_year ==1995; qui replace sample=1 if campus==241901001& rated_year ==2003; qui replace sample=1 if campus==15907006& rated_year ==2004; qui replace sample=1 if campus==57905016& rated_year ==1998; qui replace sample=1 if campus==112906001& rated_year ==2006; qui replace sample=1 if campus==79907005& rated_year ==2008; qui replace sample=1 if campus==127906001& rated_year ==2006; qui replace sample=1 if campus==57922001& rated_year ==2003; qui replace sample=1 if campus==237905002& rated_year ==2000; qui replace sample=1 if campus==127906001& rated_year ==2002; qui replace sample=1 if campus==101909003& rated_year ==2008; qui replace sample=1 if campus==67907001& rated_year ==2004; qui replace sample=1 if campus==160901001& rated_year ==1996; qui replace sample=1 if campus==198901001& rated_year ==1998; qui replace sample=1 if campus==101912003& rated_year ==1999; qui replace sample=1 if campus==71909001& rated_year ==2004; qui replace sample=1 if campus==220919001& rated_year ==1994; qui replace sample=1 if campus==71909001& rated_year ==2003; qui replace sample=1 if campus==79907005& rated_year ==2005; qui replace sample=1 if campus==227909001& rated_year ==2001; qui replace sample=1 if campus==68901047& rated_year ==2000; qui replace sample=1 if campus==234907002& rated_year ==2003; qui replace sample=1 if campus==198901001& rated_year ==2005; qui replace sample=1 if campus==52901001& rated_year ==2006; qui replace sample=1 if campus==246912001& rated_year ==1999; qui replace sample=1 if campus==116905002& rated_year ==2001; qui replace sample=1 if campus==54901001& rated_year ==2001; qui replace sample=1 if campus==160901001& rated_year ==1999; qui replace sample=1 if campus==126904001& rated_year ==1999; qui replace sample=1 if campus==201907001& rated_year ==1998; qui replace sample=1 if campus==101925001& rated_year ==2008; qui replace sample=1 if campus==8903001& rated_year ==2002; qui replace sample=1 if campus==77901001& rated_year ==2003; qui replace sample=1 if campus==140904001& rated_year ==2000; qui replace sample=1 if campus==89903001& rated_year ==1997; qui replace sample=1 if campus==120902001& rated_year ==1996; qui replace sample=1 if campus==43912001& rated_year ==2001; qui replace sample=1 if campus==140904001& rated_year ==2007; qui replace sample=1 if campus==160901001& rated_year ==1998; qui replace sample=1 if campus==220914001& rated_year ==1998; qui replace sample=1 if campus==79907005& rated_year ==2004; qui replace sample=1 if campus==57905003& rated_year ==1996; qui replace sample=1 if campus==57905016& rated_year ==2003; qui replace sample=1 if campus==74909001& rated_year ==1994; qui replace sample=1 if campus==5901001& rated_year ==2005; qui replace sample=1 if campus==57922001& rated_year ==2007; qui replace sample=1 if campus==123905001& rated_year ==1994; qui replace sample=1 if campus==61903001& rated_year ==2008; qui replace sample=1 if campus==101912029& rated_year ==1995; qui replace sample=1 if campus==230905001& rated_year ==2006; qui replace sample=1 if campus==237905002& rated_year ==2003; qui replace sample=1 if campus==116905002& rated_year ==2008; qui replace sample=1 if campus==220919001& rated_year ==1995; qui replace sample=1 if campus==240904001& rated_year ==1996; qui replace sample=1 if campus==112906001& rated_year ==2003; qui replace sample=1 if campus==198901001& rated_year ==2001; qui replace sample=1 if campus==3902001& rated_year ==2008; qui replace sample=1 if campus==143903001& rated_year ==1999; qui replace sample=1 if campus==240904001& rated_year ==1998; qui replace sample=1 if campus==114902001& rated_year ==1999; qui replace sample=1 if campus==75903001& rated_year ==2003; qui replace sample=1 if campus==119903001& rated_year ==2007; qui replace sample=1 if campus==139909002& rated_year ==2000; qui replace sample=1 if campus==192901001& rated_year ==2007; qui replace sample=1 if campus==101909003& rated_year ==1994; qui replace sample=1 if campus==119903001& rated_year ==2001; qui replace sample=1 if campus==140904001& rated_year ==1999; qui replace sample=1 if campus==188902001& rated_year ==2002; qui replace sample=1 if campus==71905008& rated_year ==1996; qui replace sample=1 if campus==18904001& rated_year ==2000; qui replace sample=1 if campus==11904002& rated_year ==1999; qui replace sample=1 if campus==91909001& rated_year ==1996; qui replace sample=1 if campus==128901001& rated_year ==1999; qui replace sample=1 if campus==91909001& rated_year ==1997; qui replace sample=1 if campus==57905003& rated_year ==2001; qui replace sample=1 if campus==57905003& rated_year ==1995; qui replace sample=1 if campus==57905003& rated_year ==1999; qui replace sample=1 if campus==57905003& rated_year ==2002; qui replace sample=1 if campus==15907006& rated_year ==2001; qui replace sample=1 if campus==201907001& rated_year ==2005; qui replace sample=1 if campus==230905001& rated_year ==1999; qui replace sample=1 if campus==54901001& rated_year ==2003; qui replace sample=1 if campus==101909003& rated_year ==1999; qui replace sample=1 if campus==227912001& rated_year ==2002; qui replace sample=1 if campus==5901001& rated_year ==2004; qui replace sample=1 if campus==70911001& rated_year ==2000; qui replace sample=1 if campus==75903001& rated_year ==1995; qui replace sample=1 if campus==192901001& rated_year ==1998; qui replace sample=1 if campus==101912003& rated_year ==1998; qui replace sample=1 if campus==199901001& rated_year ==1994; qui replace sample=1 if campus==199901001& rated_year ==2002; qui replace sample=1 if campus==57905012& rated_year ==1997; qui replace sample=1 if campus==57905012& rated_year ==2001; qui replace sample=1 if campus==57905012& rated_year ==2003; qui replace sample=1 if campus==57905012& rated_year ==2005; qui replace sample=1 if campus==57905012& rated_year ==2006; qui replace sample=1 if campus==57905012& rated_year ==2007; qui replace sample=1 if campus==86901001& rated_year ==2006; qui replace sample=1 if campus==249904001& rated_year ==2004; qui replace sample=1 if campus==11904002& rated_year ==2000; qui replace sample=1 if campus==227909001& rated_year ==1996; qui replace sample=1 if campus==246912001& rated_year ==2006; qui replace sample=1 if campus==57905016& rated_year ==2001; qui replace sample=1 if campus==57905016& rated_year ==2002; qui replace sample=1 if campus==57905016& rated_year ==2008; qui replace sample=1 if campus==198901001& rated_year ==2004; qui replace sample=1 if campus==198901001& rated_year ==2000; qui replace sample=1 if campus==198901001& rated_year ==1999; qui replace sample=1 if campus==198901001& rated_year ==1994; qui replace sample=1 if campus==185902001& rated_year ==1999; qui replace sample=1 if campus==31901127& rated_year ==1999; qui replace sample=1 if campus==112906001& rated_year ==2008; qui replace sample=1 if campus==5901001& rated_year ==1998; qui replace sample=1 if campus==128901001& rated_year ==2002; qui replace sample=1 if campus==15914001& rated_year ==2002; qui replace sample=1 if campus==57909008& rated_year ==2003; qui replace sample=1 if campus==166903001& rated_year ==1999; qui replace sample=1 if campus==57922001& rated_year ==1998; qui replace sample=1 if campus==160901001& rated_year ==1995; qui replace sample=1 if campus==104901001& rated_year ==2008; qui replace sample=1 if campus==61903001& rated_year ==1996; qui replace sample=1 if campus==139909002& rated_year ==2007; qui replace sample=1 if campus==192901001& rated_year ==2004; qui replace sample=1 if campus==74909001& rated_year ==1995; qui replace sample=1 if campus==143903001& rated_year ==2004; qui replace sample=1 if campus==77901001& rated_year ==2001; qui replace sample=1 if campus==186903001& rated_year ==1999; qui replace sample=1 if campus==128901001& rated_year ==2006; qui replace sample=1 if campus==249903001& rated_year ==1998; qui replace sample=1 if campus==1902001& rated_year ==2002; qui replace sample=1 if campus==67907001& rated_year ==1996; qui replace sample=1 if campus==234907002& rated_year ==2005; qui replace sample=1 if campus==240904001& rated_year ==1994; qui replace sample=1 if campus==227912001& rated_year ==1999; qui replace sample=1 if campus==43912001& rated_year ==2002; qui replace sample=1 if campus==241901001& rated_year ==1998; qui replace sample=1 if campus==188902001& rated_year ==2001; qui replace sample=1 if campus==188902001& rated_year ==2000; qui replace sample=1 if campus==188902001& rated_year ==1999; qui replace sample=1 if campus==188902001& rated_year ==1994; qui replace sample=1 if campus==234907002& rated_year ==2006; qui replace sample=1 if campus==230901001& rated_year ==1999; qui replace sample=1 if campus==79907005& rated_year ==2000; qui replace sample=1 if campus==201907001& rated_year ==1997; qui replace sample=1 if campus==227912001& rated_year ==2007; qui replace sample=1 if campus==254902001& rated_year ==2003; qui replace sample=1 if campus==126906001& rated_year ==2008; qui replace sample=1 if campus==1902001& rated_year ==1994; qui replace sample=1 if campus==71905008& rated_year ==2000; qui replace sample=1 if campus==57905016& rated_year ==1994; qui replace sample=1 if campus==15914001& rated_year ==2003; qui replace sample=1 if campus==77901001& rated_year ==2008; qui replace sample=1 if campus==112906001& rated_year ==2005; qui replace sample=1 if campus==186903001& rated_year ==2003; qui replace sample=1 if campus==57909008& rated_year ==1995; qui replace sample=1 if campus==186903001& rated_year ==1994; qui replace sample=1 if campus==57909008& rated_year ==2005; qui replace sample=1 if campus==57909008& rated_year ==2006; qui replace sample=1 if campus==57909008& rated_year ==2007; qui replace sample=1 if campus==67907001& rated_year ==1997; qui replace sample=1 if campus==3902001& rated_year ==2001; qui replace sample=1 if campus==139909002& rated_year ==1996; qui replace sample=1 if campus==246904001& rated_year ==2000; qui replace sample=1 if campus==89903001& rated_year ==2002; qui replace sample=1 if campus==185902001& rated_year ==2005; qui replace sample=1 if campus==208902001& rated_year ==2006; qui replace sample=1 if campus==101912023& rated_year ==2003; qui replace sample=1 if campus==175910001& rated_year ==1998; qui replace sample=1 if campus==140907001& rated_year ==1998; qui replace sample=1 if campus==61914001& rated_year ==2007; qui replace sample=1 if campus==226903001& rated_year ==2000; qui replace sample=1 if campus==57922001& rated_year ==1997; qui replace sample=1 if campus==93903001& rated_year ==2000; qui replace sample=1 if campus==104901001& rated_year ==1994; qui replace sample=1 if campus==101912003& rated_year ==1996; qui replace sample=1 if campus==220919001& rated_year ==2004; qui replace sample=1 if campus==188902001& rated_year ==2004; qui replace sample=1 if campus==199901001& rated_year ==2005; qui replace sample=1 if campus==198901001& rated_year ==2003; qui replace sample=1 if campus==149902001& rated_year ==2008; qui replace sample=1 if campus==147902001& rated_year ==1995; qui replace sample=1 if campus==75903001& rated_year ==2008; qui replace sample=1 if campus==166903001& rated_year ==2003; qui replace sample=1 if campus==79907005& rated_year ==2006; qui replace sample=1 if campus==15907006& rated_year ==2007; qui replace sample=1 if campus==104901001& rated_year ==1997; qui replace sample=1 if campus==119903001& rated_year ==1998; qui replace sample=1 if campus==94903001& rated_year ==2008; qui replace sample=1 if campus==249902001& rated_year ==2002; qui replace sample=1 if campus==116905002& rated_year ==2007; qui replace sample=1 if campus==57909008& rated_year ==2008; qui replace sample=1 if campus==139909002& rated_year ==1998; qui replace sample=1 if campus==88902001& rated_year ==1994; qui replace sample=1 if campus==52901001& rated_year ==2007; qui replace sample=1 if campus==104901001& rated_year ==2005; qui replace sample=1 if campus==143903001& rated_year ==2006; qui replace sample=1 if campus==70911001& rated_year ==2004; qui replace sample=1 if campus==192901001& rated_year ==1995; qui replace sample=1 if campus==186903001& rated_year ==2006; qui replace sample=1 if campus==52901001& rated_year ==2005; qui replace sample=1 if campus==108905001& rated_year ==2008; qui replace sample=1 if campus==61903001& rated_year ==2001; qui replace sample=1 if campus==254902001& rated_year ==2002; qui replace sample=1 if campus==101921001& rated_year ==2006; qui replace sample=1 if campus==116905002& rated_year ==1995; qui replace sample=1 if campus==101912018& rated_year ==1999; qui replace sample=1 if campus==186903001& rated_year ==2004; qui replace sample=1 if campus==166903001& rated_year ==1996; qui replace sample=1 if campus==185902001& rated_year ==2006; qui replace sample=1 if campus==57922001& rated_year ==2004; qui replace sample=1 if campus==57922001& rated_year ==2005; qui replace sample=1 if campus==57922001& rated_year ==2006; qui replace sample=1 if campus==220914001& rated_year ==2008; qui replace sample=1 if campus==74907001& rated_year ==2006; qui replace sample=1 if campus==74909001& rated_year ==2000; qui replace sample=1 if campus==75903001& rated_year ==1994; qui replace sample=1 if campus==113901002& rated_year ==1995; qui replace sample=1 if campus==192901001& rated_year ==2005; qui replace sample=1 if campus==188902001& rated_year ==1998; qui replace sample=1 if campus==74907001& rated_year ==1994; qui replace sample=1 if campus==70911001& rated_year ==1999; qui replace sample=1 if campus==86901001& rated_year ==1994; qui replace sample=1 if campus==43912001& rated_year ==2005; qui replace sample=1 if campus==139909002& rated_year ==2001; qui replace sample=1 if campus==126904001& rated_year ==2004; qui replace sample=1 if campus==61907001& rated_year ==2004; qui replace sample=1 if campus==108905001& rated_year ==2005; qui replace sample=1 if campus==94903001& rated_year ==1996; qui replace sample=1 if campus==70911001& rated_year ==2006; qui replace sample=1 if campus==126904001& rated_year ==2006; qui replace sample=1 if campus==175910001& rated_year ==2008; qui replace sample=1 if campus==15914001& rated_year ==2008; qui replace sample=1 if campus==230905001& rated_year ==2008; qui replace sample=1 if campus==160901001& rated_year ==2006; qui replace sample=1 if campus==112906001& rated_year ==2007; qui replace sample=1 if campus==226903001& rated_year ==2008; qui replace sample=1 if campus==119903001& rated_year ==1994; qui replace sample=1 if campus==212905005& rated_year ==1994; qui replace sample=1 if campus==61903001& rated_year ==2000; qui replace sample=1 if campus==3902001& rated_year ==1996; qui replace sample=1 if campus==114902001& rated_year ==1995; qui replace sample=1 if campus==61907001& rated_year ==1996; qui replace sample=1 if campus==61907001& rated_year ==1999; qui replace sample=1 if campus==61907001& rated_year ==2005; qui replace sample=1 if campus==101921001& rated_year ==1996; qui replace sample=1 if campus==140904001& rated_year ==2002; qui replace sample=1 if campus==70911001& rated_year ==1998; qui replace sample=1 if campus==113901002& rated_year ==2000; qui replace sample=1 if campus==18904001& rated_year ==2008; qui replace sample=1 if campus==140907001& rated_year ==2002; qui replace sample=1 if campus==208902001& rated_year ==1995; qui replace sample=1 if campus==171902001& rated_year ==1994; qui replace sample=1 if campus==113901002& rated_year ==2001; qui replace sample=1 if campus==227912001& rated_year ==2004; qui replace sample=1 if campus==61907001& rated_year ==2003; qui replace sample=1 if campus==88902001& rated_year ==1998; qui replace sample=1 if campus==61914001& rated_year ==1996; qui replace sample=1 if campus==201907001& rated_year ==2004; qui replace sample=1 if campus==61914001& rated_year ==2005; qui replace sample=1 if campus==61914001& rated_year ==2006; qui replace sample=1 if campus==101912018& rated_year ==2004; qui replace sample=1 if campus==246904001& rated_year ==2008; qui replace sample=1 if campus==71909001& rated_year ==1996; qui replace sample=1 if campus==15907006& rated_year ==2003; qui replace sample=1 if campus==69901001& rated_year ==2001; qui replace sample=1 if campus==114902001& rated_year ==1994; qui replace sample=1 if campus==123905001& rated_year ==2007; qui replace sample=1 if campus==101912023& rated_year ==1999; qui replace sample=1 if campus==94903001& rated_year ==2004; qui replace sample=1 if campus==166905001& rated_year ==2002; qui replace sample=1 if campus==74907001& rated_year ==2007; qui replace sample=1 if campus==220919001& rated_year ==2003; qui replace sample=1 if campus==175910001& rated_year ==2007; qui replace sample=1 if campus==175910001& rated_year ==2005; qui replace sample=1 if campus==175910001& rated_year ==2001; qui replace sample=1 if campus==175910001& rated_year ==1997; qui replace sample=1 if campus==175910001& rated_year ==1996; qui replace sample=1 if campus==234907002& rated_year ==1999; qui replace sample=1 if campus==186903001& rated_year ==1996; qui replace sample=1 if campus==71905008& rated_year ==1999; qui replace sample=1 if campus==75903001& rated_year ==1998; qui replace sample=1 if campus==8903001& rated_year ==1997; qui replace sample=1 if campus==5901001& rated_year ==1995; qui replace sample=1 if campus==166903001& rated_year ==2008; qui replace sample=1 if campus==160901001& rated_year ==2001; qui replace sample=1 if campus==126904001& rated_year ==1997; qui replace sample=1 if campus==101912003& rated_year ==1997; qui replace sample=1 if campus==101925001& rated_year ==1998; qui replace sample=1 if campus==237905002& rated_year ==1996; qui replace sample=1 if campus==185902001& rated_year ==2002; qui replace sample=1 if campus==67907001& rated_year ==1995; qui replace sample=1 if campus==67907001& rated_year ==2002; qui replace sample=1 if campus==241901001& rated_year ==2000; qui replace sample=1 if campus==116905002& rated_year ==1999; qui replace sample=1 if campus==57905012& rated_year ==2008; qui replace sample=1 if campus==127906001& rated_year ==2008; qui replace sample=1 if campus==188902001& rated_year ==1995; qui replace sample=1 if campus==186903001& rated_year ==2002; qui replace sample=1 if campus==57905012& rated_year ==1994; qui replace sample=1 if campus==91909001& rated_year ==1995; qui replace sample=1 if campus==230901001& rated_year ==2006; qui replace sample=1 if campus==171902001& rated_year ==2001; qui replace sample=1 if campus==234907002& rated_year ==2001; qui replace sample=1 if campus==171902001& rated_year ==1996; qui replace sample=1 if campus==171902001& rated_year ==1995; qui replace sample=1 if campus==71905008& rated_year ==1997; qui replace sample=1 if campus==201907001& rated_year ==2008; qui replace sample=1 if campus==234907002& rated_year ==1996; qui replace sample=1 if campus==43912001& rated_year ==2007; qui replace sample=1 if campus==249903001& rated_year ==1994; qui replace sample=1 if campus==226903001& rated_year ==2006; qui replace sample=1 if campus==69901001& rated_year ==1995; qui replace sample=1 if campus==69901001& rated_year ==1996; qui replace sample=1 if campus==69901001& rated_year ==2002; qui replace sample=1 if campus==70911001& rated_year ==1995; qui replace sample=1 if campus==57905003& rated_year ==2007; qui replace sample=1 if campus==8903001& rated_year ==1998; qui replace sample=1 if campus==88902001& rated_year ==1997; qui replace sample=1 if campus==171902001& rated_year ==1999; qui replace sample=1 if campus==186903001& rated_year ==2000; qui replace sample=1 if campus==11904002& rated_year ==2003; qui replace sample=1 if campus==93903001& rated_year ==2003; qui replace sample=1 if campus==246905001& rated_year ==2007; qui replace sample=1 if campus==199901001& rated_year ==2008; qui replace sample=1 if campus==11904002& rated_year ==2001; qui replace sample=1 if campus==119903001& rated_year ==1997; qui replace sample=1 if campus==70911001& rated_year ==2007; qui replace sample=1 if campus==70911001& rated_year ==2008; qui replace sample=1 if campus==93903001& rated_year ==2008; qui replace sample=1 if campus==208902001& rated_year ==1997; qui replace sample=1 if campus==88902001& rated_year ==2007; qui replace sample=1 if campus==67907001& rated_year ==2006; qui replace sample=1 if campus==104901001& rated_year ==1995; qui replace sample=1 if campus==241901001& rated_year ==2005; qui replace sample=1 if campus==101912018& rated_year ==1997; qui replace sample=1 if campus==88902001& rated_year ==1999; qui replace sample=1 if campus==5901001& rated_year ==2000; qui replace sample=1 if campus==89903001& rated_year ==2008; qui replace sample=1 if campus==15914001& rated_year ==2007; qui replace sample=1 if campus==76904001& rated_year ==2004; qui replace sample=1 if campus==61907001& rated_year ==1994; qui replace sample=1 if campus==249903001& rated_year ==1995; qui replace sample=1 if campus==149902001& rated_year ==2000; qui replace sample=1 if campus==91909001& rated_year ==2004; qui replace sample=1 if campus==220914001& rated_year ==1999; qui replace sample=1 if campus==127906001& rated_year ==1997; qui replace sample=1 if campus==192901001& rated_year ==1997; qui replace sample=1 if campus==79907005& rated_year ==2003; qui replace sample=1 if campus==86901001& rated_year ==2000; qui replace sample=1 if campus==246906001& rated_year ==2003; qui replace sample=1 if campus==101909003& rated_year ==2006; qui replace sample=1 if campus==159901001& rated_year ==2004; qui replace sample=1 if campus==246904001& rated_year ==2004; qui replace sample=1 if campus==18904001& rated_year ==2004; qui replace sample=1 if campus==93903001& rated_year ==1997; qui replace sample=1 if campus==166905001& rated_year ==1996; qui replace sample=1 if campus==57905016& rated_year ==2004; qui replace sample=1 if campus==71905008& rated_year ==2004; qui replace sample=1 if campus==254902001& rated_year ==1999; qui replace sample=1 if campus==166905001& rated_year ==2006; qui replace sample=1 if campus==220914001& rated_year ==1994; qui replace sample=1 if campus==166903001& rated_year ==1997; qui replace sample=1 if campus==166903001& rated_year ==1995; qui replace sample=1 if campus==227909001& rated_year ==1999; qui replace sample=1 if campus==230901001& rated_year ==2005; qui replace sample=1 if campus==70911001& rated_year ==1994; qui replace sample=1 if campus==186903001& rated_year ==1997; qui replace sample=1 if campus==101912023& rated_year ==2005; qui replace sample=1 if campus==101909003& rated_year ==2005; qui replace sample=1 if campus==71905008& rated_year ==2005; qui replace sample=1 if campus==71905008& rated_year ==2007; qui replace sample=1 if campus==192901001& rated_year ==2002; qui replace sample=1 if campus==220919001& rated_year ==2001; qui replace sample=1 if campus==246905001& rated_year ==1998; qui replace sample=1 if campus==120902001& rated_year ==1994; qui replace sample=1 if campus==104901001& rated_year ==1996; qui replace sample=1 if campus==237905002& rated_year ==2002; qui replace sample=1 if campus==126906001& rated_year ==2002; qui replace sample=1 if campus==31901127& rated_year ==1996; qui replace sample=1 if campus==18904001& rated_year ==1995; qui replace sample=1 if campus==192901001& rated_year ==2006; qui replace sample=1 if campus==208902001& rated_year ==1998; qui replace sample=1 if campus==101912003& rated_year ==2001; qui replace sample=1 if campus==57922001& rated_year ==1995; qui replace sample=1 if campus==249902001& rated_year ==2005; qui replace sample=1 if campus==71905008& rated_year ==2008; qui replace sample=1 if campus==89903001& rated_year ==2004; qui replace sample=1 if campus==74907001& rated_year ==2003; qui replace sample=1 if campus==8903001& rated_year ==1996; qui replace sample=1 if campus==149902001& rated_year ==2003; qui replace sample=1 if campus==89903001& rated_year ==2003; qui replace sample=1 if campus==246912001& rated_year ==2000; qui replace sample=1 if campus==192901001& rated_year ==1994; qui replace sample=1 if campus==61914001& rated_year ==2004; qui replace sample=1 if campus==61914001& rated_year ==1997; qui replace sample=1 if campus==116905002& rated_year ==2006; qui replace sample=1 if campus==171902001& rated_year ==2008; qui replace sample=1 if campus==188902001& rated_year ==1997; qui replace sample=1 if campus==166905001& rated_year ==2003; qui replace sample=1 if campus==123905001& rated_year ==1999; qui replace sample=1 if campus==8903001& rated_year ==2006; qui replace sample=1 if campus==166903001& rated_year ==2002; qui replace sample=1 if campus==57905012& rated_year ==1998; qui replace sample=1 if campus==15914001& rated_year ==2001; qui replace sample=1 if campus==246905001& rated_year ==2002; qui replace sample=1 if campus==101912018& rated_year ==1998; qui replace sample=1 if campus==230905001& rated_year ==2000; qui replace sample=1 if campus==101921001& rated_year ==2004; qui replace sample=1 if campus==113901002& rated_year ==2002; qui replace sample=1 if campus==192901001& rated_year ==2008; qui replace sample=1 if campus==240904001& rated_year ==2002; qui replace sample=1 if campus==3902001& rated_year ==1994; qui replace sample=1 if campus==139909002& rated_year ==2002; qui replace sample=1 if campus==74907001& rated_year ==1999; qui replace sample=1 if campus==74907001& rated_year ==2000; qui replace sample=1 if campus==249904001& rated_year ==1997; qui replace sample=1 if campus==52901001& rated_year ==1995; qui replace sample=1 if campus==237905002& rated_year ==1994; qui replace sample=1 if campus==116905002& rated_year ==2002; qui replace sample=1 if campus==101912018& rated_year ==2002; qui replace sample=1 if campus==89903001& rated_year ==1995; qui replace sample=1 if campus==61903001& rated_year ==2006; qui replace sample=1 if campus==221904001& rated_year ==1999; qui replace sample=1 if campus==101921001& rated_year ==1998; qui replace sample=1 if campus==220914001& rated_year ==2001; qui replace sample=1 if campus==208902001& rated_year ==2001; qui replace sample=1 if campus==15907006& rated_year ==2006; qui replace sample=1 if campus==57909008& rated_year ==1994; qui replace sample=1 if campus==241901001& rated_year ==1997; qui replace sample=1 if campus==108905001& rated_year ==1999; qui replace sample=1 if campus==76904001& rated_year ==1995; qui replace sample=1 if campus==77901001& rated_year ==1994; qui replace sample=1 if campus==77901001& rated_year ==1999; qui replace sample=1 if campus==227909001& rated_year ==1995; qui replace sample=1 if campus==77901001& rated_year ==2007; qui replace sample=1 if campus==77901001& rated_year ==2006; qui replace sample=1 if campus==61914001& rated_year ==2001; qui replace sample=1 if campus==101921001& rated_year ==2001; qui replace sample=1 if campus==101921001& rated_year ==2007; qui replace sample=1 if campus==61914001& rated_year ==1995; qui replace sample=1 if campus==143903001& rated_year ==2003; qui replace sample=1 if campus==249904001& rated_year ==2003; qui replace sample=1 if campus==237905002& rated_year ==2004; qui replace sample=1 if campus==67907001& rated_year ==2000; qui replace sample=1 if campus==254902001& rated_year ==1996; qui replace sample=1 if campus==61914001& rated_year ==2003; qui replace sample=1 if campus==3902001& rated_year ==1998; qui replace sample=1 if campus==240904001& rated_year ==2006; qui replace sample=1 if campus==221904001& rated_year ==2002; qui replace sample=1 if campus==241901001& rated_year ==2004; qui replace sample=1 if campus==57909008& rated_year ==1998; qui replace sample=1 if campus==226903001& rated_year ==2003; qui replace sample=1 if campus==246906001& rated_year ==1995; qui replace sample=1 if campus==185902001& rated_year ==1998; qui replace sample=1 if campus==199901001& rated_year ==2003; qui replace sample=1 if campus==15914001& rated_year ==1999; qui replace sample=1 if campus==240904001& rated_year ==1999; qui replace sample=1 if campus==126906001& rated_year ==1999; qui replace sample=1 if campus==43912001& rated_year ==1995; qui replace sample=1 if campus==240904001& rated_year ==1995; qui replace sample=1 if campus==11904002& rated_year ==1998; qui replace sample=1 if campus==1902001& rated_year ==1997; qui replace sample=1 if campus==160901001& rated_year ==2007; qui replace sample=1 if campus==160901001& rated_year ==1997; qui replace sample=1 if campus==88902001& rated_year ==2008; qui replace sample=1 if campus==127906001& rated_year ==2000; qui replace sample=1 if campus==18904001& rated_year ==2001; qui replace sample=1 if campus==149902001& rated_year ==1996; qui replace sample=1 if campus==1902001& rated_year ==2006; qui replace sample=1 if campus==57905003& rated_year ==1998; qui replace sample=1 if campus==79907005& rated_year ==1999; qui replace sample=1 if campus==254902001& rated_year ==2005; qui replace sample=1 if campus==123905001& rated_year ==2001; qui replace sample=1 if campus==119903001& rated_year ==1995; qui replace sample=1 if campus==15907006& rated_year ==2005; qui replace sample=1 if campus==18904001& rated_year ==2002; qui replace sample=1 if campus==11904002& rated_year ==1994; qui replace sample=1 if campus==143903001& rated_year ==2007; qui replace sample=1 if campus==57905016& rated_year ==1999; qui replace sample=1 if campus==54901001& rated_year ==1995; qui replace sample=1 if campus==113901002& rated_year ==2003; qui replace sample=1 if campus==249903001& rated_year ==1996; qui replace sample=1 if campus==249903001& rated_year ==2003; qui replace sample=1 if campus==114902001& rated_year ==2008; qui replace sample=1 if campus==201907001& rated_year ==2000; qui replace sample=1 if campus==116905002& rated_year ==1996; qui replace sample=1 if campus==220914001& rated_year ==1997; qui replace sample=1 if campus==70911001& rated_year ==1996; qui replace sample=1 if campus==67907001& rated_year ==2008; qui replace sample=1 if campus==140907001& rated_year ==2000; qui replace sample=1 if campus==159901001& rated_year ==2003; qui replace sample=1 if campus==230905001& rated_year ==2003; qui replace sample=1 if campus==175910001& rated_year ==1994; qui replace sample=1 if campus==57905016& rated_year ==2006; qui replace sample=1 if campus==67907001& rated_year ==1998; qui replace sample=1 if campus==128901001& rated_year ==2008; qui replace sample=1 if campus==226903001& rated_year ==2005; qui replace sample=1 if campus==88902001& rated_year ==2006; qui replace sample=1 if campus==101912023& rated_year ==2006; qui replace sample=1 if campus==201907001& rated_year ==1999; qui replace sample=1 if campus==140904001& rated_year ==2003; qui replace sample=1 if campus==166903001& rated_year ==2000; qui replace sample=1 if campus==57905012& rated_year ==1995; qui replace sample=1 if campus==101912018& rated_year ==1996; qui replace sample=1 if campus==230905001& rated_year ==1996; qui replace sample=1 if campus==79907005& rated_year ==2007; qui replace sample=1 if campus==249904001& rated_year ==1996; qui replace sample=1 if campus==227912001& rated_year ==1998; qui replace sample=1 if campus==123905001& rated_year ==2003; qui replace sample=1 if campus==57922001& rated_year ==2000; qui replace sample=1 if campus==71909001& rated_year ==1998; qui replace sample=1 if campus==147902001& rated_year ==1996; qui replace sample=1 if campus==61903001& rated_year ==1997; qui replace sample=1 if campus==71909001& rated_year ==2000; qui replace sample=1 if campus==101925001& rated_year ==2006; qui replace sample=1 if campus==230905001& rated_year ==2002; qui replace sample=1 if campus==113901002& rated_year ==2006; qui replace sample=1 if campus==86901001& rated_year ==1996; qui replace sample=1 if campus==86901001& rated_year ==1997; qui replace sample=1 if campus==86901001& rated_year ==2005; qui replace sample=1 if campus==86901001& rated_year ==2008; qui replace sample=1 if campus==3902001& rated_year ==2005; qui replace sample=1 if campus==101921001& rated_year ==1995; qui replace sample=1 if campus==52901001& rated_year ==2004; qui replace sample=1 if campus==208902001& rated_year ==2005; qui replace sample=1 if campus==88902001& rated_year ==2002; qui replace sample=1 if campus==198901001& rated_year ==1995; qui replace sample=1 if campus==159901001& rated_year ==1997; qui replace sample=1 if campus==254902001& rated_year ==1997; qui replace sample=1 if campus==74907001& rated_year ==1998; qui replace sample=1 if campus==75903001& rated_year ==2007; qui replace sample=1 if campus==171902001& rated_year ==1998; qui replace sample=1 if campus==188902001& rated_year ==2008; qui replace sample=1 if campus==77901001& rated_year ==1996; qui replace sample=1 if campus==43912001& rated_year ==1998; qui replace sample=1 if campus==160901001& rated_year ==2002; qui replace sample=1 if campus==61914001& rated_year ==1999; qui replace sample=1 if campus==139909002& rated_year ==1995; qui replace sample=1 if campus==140904001& rated_year ==1997; qui replace sample=1 if campus==61903001& rated_year ==2003; qui replace sample=1 if campus==101912018& rated_year ==2006; qui replace sample=1 if campus==149902001& rated_year ==2007; qui replace sample=1 if campus==149902001& rated_year ==2002; qui replace sample=1 if campus==149902001& rated_year ==1995; qui replace sample=1 if campus==149902001& rated_year ==1994; qui replace sample=1 if campus==67907001& rated_year ==1994; qui replace sample=1 if campus==94903001& rated_year ==1998; qui replace sample=1 if campus==54901001& rated_year ==2002; qui replace sample=1 if campus==241901001& rated_year ==2006; qui replace sample=1 if campus==246912001& rated_year ==1998; qui replace sample=1 if campus==241901001& rated_year ==1999; qui replace sample=1 if campus==240904001& rated_year ==1997; qui replace sample=1 if campus==15907006& rated_year ==2002; qui replace sample=1 if campus==147902001& rated_year ==2002; qui replace sample=1 if campus==147902001& rated_year ==2001; qui replace sample=1 if campus==113901002& rated_year ==1999; qui replace sample=1 if campus==101909003& rated_year ==1995; qui replace sample=1 if campus==11904002& rated_year ==1996; qui replace sample=1 if campus==15914001& rated_year ==2000; qui replace sample=1 if campus==79907005& rated_year ==1994; qui replace sample=1 if campus==246906001& rated_year ==1994; qui replace sample=1 if campus==91909001& rated_year ==2000; qui replace sample=1 if campus==91909001& rated_year ==2005; qui replace sample=1 if campus==104901001& rated_year ==2006; qui replace sample=1 if campus==70911001& rated_year ==2003; qui replace sample=1 if campus==5901001& rated_year ==2002; qui replace sample=1 if campus==61914001& rated_year ==2008; qui replace sample=1 if campus==249902001& rated_year ==2003; qui replace sample=1 if campus==127906001& rated_year ==1996; qui replace sample=1 if campus==79907005& rated_year ==2002; qui replace sample=1 if campus==101912003& rated_year ==2006; qui replace sample=1 if campus==94903001& rated_year ==2001; qui replace sample=1 if campus==8903001& rated_year ==1999; qui replace sample=1 if campus==123905001& rated_year ==2004; qui replace sample=1 if campus==201907001& rated_year ==2001; qui replace sample=1 if campus==201907001& rated_year ==2002; qui replace sample=1 if campus==159901001& rated_year ==2006; qui replace sample=1 if campus==93903001& rated_year ==1999; qui replace sample=1 if campus==3902001& rated_year ==2007; qui replace sample=1 if campus==220914001& rated_year ==2007; qui replace sample=1 if campus==68901047& rated_year ==1996; qui replace sample=1 if campus==31901127& rated_year ==1994; qui replace sample=1 if campus==171902001& rated_year ==1997; qui replace sample=1 if campus==75903001& rated_year ==2005; qui replace sample=1 if campus==246904001& rated_year ==2005; qui replace sample=1 if campus==208902001& rated_year ==2002; qui replace sample=1 if campus==93903001& rated_year ==1994; qui replace sample=1 if campus==93903001& rated_year ==2007; qui replace sample=1 if campus==57922001& rated_year ==2001; qui replace sample=1 if campus==230905001& rated_year ==2007; qui replace sample=1 if campus==52901001& rated_year ==2000; qui replace sample=1 if campus==143903001& rated_year ==1995; qui replace sample=1 if campus==166903001& rated_year ==2006; qui replace sample=1 if campus==61907001& rated_year ==2002; qui replace sample=1 if campus==227909001& rated_year ==2007; qui replace sample=1 if campus==149902001& rated_year ==1998; qui replace sample=1 if campus==246906001& rated_year ==1997; qui replace sample=1 if campus==71909001& rated_year ==1995; qui replace sample=1 if campus==126904001& rated_year ==2008; qui replace sample=1 if campus==166903001& rated_year ==2001; qui replace sample=1 if campus==160901001& rated_year ==2005; qui replace sample=1 if campus==94903001& rated_year ==2003; qui replace sample=1 if campus==249903001& rated_year ==2002; qui replace sample=1 if campus==140904001& rated_year ==1994; qui replace sample=1 if campus==57905016& rated_year ==2000; qui replace sample=1 if campus==249902001& rated_year ==2000; qui replace sample=1 if campus==127906001& rated_year ==1999; qui replace sample=1 if campus==140904001& rated_year ==2004; qui replace sample=1 if campus==15907006& rated_year ==1997; qui replace sample=1 if campus==140907001& rated_year ==2004; qui replace sample=1 if campus==140907001& rated_year ==2003; qui replace sample=1 if campus==140907001& rated_year ==1995; qui replace sample=1 if campus==140907001& rated_year ==1994; qui replace sample=1 if campus==140904001& rated_year ==2005; qui replace sample=1 if campus==127906001& rated_year ==1994; qui replace sample=1 if campus==221904001& rated_year ==2007; qui replace sample=1 if campus==108905001& rated_year ==2006; qui replace sample=1 if campus==52901001& rated_year ==1998; qui replace sample=1 if campus==101912023& rated_year ==2004; qui replace sample=1 if campus==68901047& rated_year ==2005; qui replace sample=1 if campus==140904001& rated_year ==1996; qui replace sample=1 if campus==234907002& rated_year ==1994; qui replace sample=1 if campus==61907001& rated_year ==2007; qui replace sample=1 if campus==70911001& rated_year ==2001; qui replace sample=1 if campus==143903001& rated_year ==2000; qui replace sample=1 if campus==139909002& rated_year ==1997; qui replace sample=1 if campus==91909001& rated_year ==2003; qui replace sample=1 if campus==75903001& rated_year ==1999; qui replace sample=1 if campus==1902001& rated_year ==2001; qui replace sample=1 if campus==31901127& rated_year ==1995; qui replace sample=1 if campus==199901001& rated_year ==1997; qui replace sample=1 if campus==123905001& rated_year ==1996; qui replace sample=1 if campus==61903001& rated_year ==2002; qui replace sample=1 if campus==120902001& rated_year ==2004; qui replace sample=1 if campus==139909002& rated_year ==1999; qui replace sample=1 if campus==175910001& rated_year ==2004; qui replace sample=1 if campus==86901001& rated_year ==2001; qui replace sample=1 if campus==192901001& rated_year ==2001; qui replace sample=1 if campus==54901001& rated_year ==1997; qui replace sample=1 if campus==74909001& rated_year ==2007; qui replace sample=1 if campus==76904001& rated_year ==1994; qui replace sample=1 if campus==198901001& rated_year ==1996; qui replace sample=1 if campus==94903001& rated_year ==2007; qui replace sample=1 if campus==220914001& rated_year ==2004; qui replace sample=1 if campus==57905003& rated_year ==2004; qui replace sample=1 if campus==113901002& rated_year ==1994; qui replace sample=1 if campus==149902001& rated_year ==1997; qui replace sample=1 if campus==246906001& rated_year ==2001; qui replace sample=1 if campus==88902001& rated_year ==1996; qui replace sample=1 if campus==57909008& rated_year ==2000; qui replace sample=1 if campus==74909001& rated_year ==1996; qui replace sample=1 if campus==76904001& rated_year ==1999; qui replace sample=1 if campus==61903001& rated_year ==1999; qui replace sample=1 if campus==71909001& rated_year ==2006; qui replace sample=1 if campus==199901001& rated_year ==2001; qui replace sample=1 if campus==5901001& rated_year ==2003; qui replace sample=1 if campus==91909001& rated_year ==2007; qui replace sample=1 if campus==240904001& rated_year ==2007; qui replace sample=1 if campus==192901001& rated_year ==1996; qui replace sample=1 if campus==75903001& rated_year ==2006; qui replace sample=1 if campus==69901001& rated_year ==2003; qui replace sample=1 if campus==54901001& rated_year ==1994; qui replace sample=1 if campus==18904001& rated_year ==1999; qui replace sample=1 if campus==104901001& rated_year ==1999; qui replace sample=1 if campus==101912023& rated_year ==2001; qui replace sample=1 if campus==77901001& rated_year ==1998; qui replace sample=1 if campus==76904001& rated_year ==2003; qui replace sample=1 if campus==139909002& rated_year ==2008; qui replace sample=1 if campus==246912001& rated_year ==1997; qui replace sample=1 if campus==91909001& rated_year ==2008; qui replace sample=1 if campus==246904001& rated_year ==2003; qui replace sample=1 if campus==74909001& rated_year ==2004; qui replace sample=1 if campus==240904001& rated_year ==2000; qui replace sample=1 if campus==108905001& rated_year ==2001; qui replace sample=1 if campus==101912018& rated_year ==2005; qui replace sample=1 if campus==171902001& rated_year ==2005; qui replace sample=1 if campus==227912001& rated_year ==2001; qui replace sample=1 if campus==227909001& rated_year ==2005; qui replace sample=1 if campus==128901001& rated_year ==2007; qui replace sample=1 if campus==8903001& rated_year ==2004; qui replace sample=1 if campus==127906001& rated_year ==2001; qui replace sample=1 if campus==234907002& rated_year ==2007; qui replace sample=1 if campus==43912001& rated_year ==1996; qui replace sample=1 if campus==246906001& rated_year ==2006; qui replace sample=1 if campus==221904001& rated_year ==2003; qui replace sample=1 if campus==160901001& rated_year ==2003; qui replace sample=1 if campus==52901001& rated_year ==2008; qui replace sample=1 if campus==43912001& rated_year ==2003; qui replace sample=1 if campus==126904001& rated_year ==2001; qui replace sample=1 if campus==166905001& rated_year ==1999; qui replace sample=1 if campus==171902001& rated_year ==2002; qui replace sample=1 if campus==140907001& rated_year ==2007; qui replace sample=1 if campus==112906001& rated_year ==1999; qui replace sample=1 if campus==175910001& rated_year ==1999; qui replace sample=1 if campus==171902001& rated_year ==2000; qui replace sample=1 if campus==185902001& rated_year ==2007; qui replace sample=1 if campus==126906001& rated_year ==2007; qui replace sample=1 if campus==126906001& rated_year ==2005; qui replace sample=1 if campus==126906001& rated_year ==2000; qui replace sample=1 if campus==126906001& rated_year ==1998; qui replace sample=1 if campus==126906001& rated_year ==1997; qui replace sample=1 if campus==128901001& rated_year ==2004; qui replace sample=1 if campus==101925001& rated_year ==2001; qui replace sample=1 if campus==88902001& rated_year ==2000; qui replace sample=1 if campus==185902001& rated_year ==1997; qui replace sample=1 if campus==126904001& rated_year ==2005; qui replace sample=1 if campus==126904001& rated_year ==1998; qui replace sample=1 if campus==126904001& rated_year ==1996; qui replace sample=1 if campus==126904001& rated_year ==1994; qui replace sample=1 if campus==188902001& rated_year ==2007; qui replace sample=1 if campus==192901001& rated_year ==1999; qui replace sample=1 if campus==101925001& rated_year ==1999; qui replace sample=1 if campus==126906001& rated_year ==1994; qui replace sample=1 if campus==101921001& rated_year ==2000; qui replace sample=1 if campus==246912001& rated_year ==2007; qui replace sample=1 if campus==69901001& rated_year ==2008; qui replace sample=1 if campus==198901001& rated_year ==2002; qui replace sample=1 if campus==18904001& rated_year ==1994; qui replace sample=1 if campus==234907002& rated_year ==2008; qui replace sample=1 if campus==221904001& rated_year ==2006; qui replace sample=1 if campus==249902001& rated_year ==2007; qui replace sample=1 if campus==175910001& rated_year ==2000; qui replace sample=1 if campus==143903001& rated_year ==1996; qui replace sample=1 if campus==101909003& rated_year ==1998; qui replace sample=1 if campus==101909003& rated_year ==2000; qui replace sample=1 if campus==101909003& rated_year ==2002; qui replace sample=1 if campus==101909003& rated_year ==2003; qui replace sample=1 if campus==101909003& rated_year ==2004; qui replace sample=1 if campus==246906001& rated_year ==1996; qui replace sample=1 if campus==120902001& rated_year ==2007; qui replace sample=1 if campus==15907006& rated_year ==1999; qui replace sample=1 if campus==230901001& rated_year ==1995; qui replace sample=1 if campus==76904001& rated_year ==2001; qui replace sample=1 if campus==201907001& rated_year ==2007; qui replace sample=1 if campus==71909001& rated_year ==2001; qui replace sample=1 if campus==175910001& rated_year ==1995; qui replace sample=1 if campus==241901001& rated_year ==2008; qui replace sample=1 if campus==201907001& rated_year ==1996; qui replace sample=1 if campus==88902001& rated_year ==2004; qui replace sample=1 if campus==101912003& rated_year ==1995; qui replace sample=1 if campus==75903001& rated_year ==2000; qui replace sample=1 if campus==89903001& rated_year ==2006; qui replace sample=1 if campus==201907001& rated_year ==2003; qui replace sample=1 if campus==171902001& rated_year ==2003; qui replace sample=1 if campus==71905008& rated_year ==2006; qui replace sample=1 if campus==89903001& rated_year ==1994; qui replace sample=1 if campus==140907001& rated_year ==2006; qui replace sample=1 if campus==101912003& rated_year ==2002; qui replace sample=1 if campus==101912003& rated_year ==2007; qui replace sample=1 if campus==57905016& rated_year ==1997; qui replace sample=1 if campus==128901001& rated_year ==2005; qui replace sample=1 if campus==104901001& rated_year ==2001; qui replace sample=1 if campus==101925001& rated_year ==1997; qui replace sample=1 if campus==246904001& rated_year ==1994; qui replace sample=1 if campus==61903001& rated_year ==2007; qui replace sample=1 if campus==246905001& rated_year ==1994; qui replace sample=1 if campus==123905001& rated_year ==2002; qui replace sample=1 if campus==101921001& rated_year ==2008; qui replace sample=1 if campus==57905003& rated_year ==1994; qui replace sample=1 if campus==240904001& rated_year ==2001; qui replace sample=1 if campus==1902001& rated_year ==1996; qui replace sample=1 if campus==101912023& rated_year ==1998; qui replace sample=1 if campus==114902001& rated_year ==1997; qui replace sample=1 if campus==91909001& rated_year ==2001; qui replace sample=1 if campus==11904002& rated_year ==1997; qui replace sample=1 if campus==101912018& rated_year ==1995; qui replace sample=1 if campus==101912018& rated_year ==2001; qui replace sample=1 if campus==101912018& rated_year ==2008; qui replace sample=1 if campus==116905002& rated_year ==2004; qui replace sample=1 if campus==254902001& rated_year ==2006; qui replace sample=1 if campus==246904001& rated_year ==1995; qui replace sample=1 if campus==57909008& rated_year ==2001; qui replace sample=1 if campus==101912023& rated_year ==1995; qui replace sample=1 if campus==101912023& rated_year ==2008; qui replace sample=1 if campus==120902001& rated_year ==2008; qui replace sample=1 if campus==127906001& rated_year ==2004; qui replace sample=1 if campus==120902001& rated_year ==1995; qui replace sample=1 if campus==74907001& rated_year ==1996; qui replace sample=1 if campus==220919001& rated_year ==2005; qui replace sample=1 if campus==77901001& rated_year ==2004; qui replace sample=1 if campus==246905001& rated_year ==2001; qui replace sample=1 if campus==220919001& rated_year ==2000; qui replace sample=1 if campus==140907001& rated_year ==1997; qui replace sample=1 if campus==119903001& rated_year ==2008; qui replace sample=1 if campus==15914001& rated_year ==2005; qui replace sample=1 if campus==101912029& rated_year ==1994; qui replace sample=1 if campus==57909008& rated_year ==2004; qui replace sample=1 if campus==119903001& rated_year ==2000; qui replace sample=1 if campus==119903001& rated_year ==1999; qui replace sample=1 if campus==108905001& rated_year ==1998; qui replace sample=1 if campus==57905012& rated_year ==1996; qui replace sample=1 if campus==220919001& rated_year ==2008; qui replace sample=1 if campus==140907001& rated_year ==1996; qui replace sample=1 if campus==221904001& rated_year ==1996; qui replace sample=1 if campus==54901001& rated_year ==2005; qui replace sample=1 if campus==254902001& rated_year ==2004; qui replace sample=1 if campus==230905001& rated_year ==2004; qui replace sample=1 if campus==208902001& rated_year ==1996; qui replace sample=1 if campus==220914001& rated_year ==2006; qui replace sample=1 if campus==246906001& rated_year ==2000; qui replace sample=1 if campus==227912001& rated_year ==2006; qui replace sample=1 if campus==108905001& rated_year ==1997; qui replace sample=1 if campus==241901001& rated_year ==2002; qui replace sample=1 if campus==175910001& rated_year ==2002; qui replace sample=1 if campus==116905002& rated_year ==1994; qui replace sample=1 if campus==74909001& rated_year ==2002; qui replace sample=1 if campus==143903001& rated_year ==2005; qui replace sample=1 if campus==71905008& rated_year ==2001; qui replace sample=1 if campus==185902001& rated_year ==2008; qui replace sample=1 if campus==54901001& rated_year ==2004; qui replace sample=1 if campus==221904001& rated_year ==1994; qui replace sample=1 if campus==94903001& rated_year ==1997; qui replace sample=1 if campus==61914001& rated_year ==1994; qui replace sample=1 if campus==91909001& rated_year ==1994; qui replace sample=1 if campus==11904002& rated_year ==2008; qui replace sample=1 if campus==101912023& rated_year ==2000; qui replace sample=1 if campus==8903001& rated_year ==2003; qui replace sample=1 if campus==147902001& rated_year ==2000; qui replace sample=1 if campus==246912001& rated_year ==2005; qui replace sample=1 if campus==159901001& rated_year ==2005; qui replace sample=1 if campus==166905001& rated_year ==2005; qui replace sample=1 if campus==101925001& rated_year ==1994; qui replace sample=1 if campus==57909008& rated_year ==1997; qui replace sample=1 if campus==249902001& rated_year ==1998; qui replace sample=1 if campus==101912018& rated_year ==1994; qui replace sample=1 if campus==246905001& rated_year ==1995; qui replace sample=1 if campus==254902001& rated_year ==2007; qui replace sample=1 if campus==114902001& rated_year ==1998; qui replace sample=1 if campus==114902001& rated_year ==1996; qui replace sample=1 if campus==120902001& rated_year ==2006; qui replace sample=1 if campus==208902001& rated_year ==1994; qui replace sample=1 if campus==108905001& rated_year ==1994; qui replace sample=1 if campus==185902001& rated_year ==1995; qui replace sample=1 if campus==246904001& rated_year ==2006; qui replace sample=1 if campus==113901002& rated_year ==2007; qui replace sample=1 if campus==113901002& rated_year ==2004; qui replace sample=1 if campus==113901002& rated_year ==1998; qui replace sample=1 if campus==113901002& rated_year ==1997; qui replace sample=1 if campus==212905005& rated_year ==1999; qui replace sample=1 if campus==68901047& rated_year ==1995; qui replace sample=1 if campus==61907001& rated_year ==2008; qui replace sample=1 if campus==68901047& rated_year ==1997; qui replace sample=1 if campus==226903001& rated_year ==1996; qui replace sample=1 if campus==230901001& rated_year ==1997; qui replace sample=1 if campus==112906001& rated_year ==2004; qui replace sample=1 if campus==112906001& rated_year ==2000; qui replace sample=1 if campus==112906001& rated_year ==1996; qui replace sample=1 if campus==112906001& rated_year ==1995; qui replace sample=1 if campus==101909003& rated_year ==1997; qui replace sample=1 if campus==199901001& rated_year ==2006; qui replace sample=1 if campus==230905001& rated_year ==1998; qui replace sample=1 if campus==249903001& rated_year ==2005; qui replace sample=1 if campus==114902001& rated_year ==2004; qui replace sample=1 if campus==76904001& rated_year ==2002; qui replace sample=1 if campus==76904001& rated_year ==2006; qui replace sample=1 if campus==86901001& rated_year ==2004; qui replace sample=1 if campus==93903001& rated_year ==1995; qui replace sample=1 if campus==227912001& rated_year ==2008; qui replace sample=1 if campus==74909001& rated_year ==1997; qui replace sample=1 if campus==221904001& rated_year ==1998; qui replace sample=1 if campus==246912001& rated_year ==1996; qui replace sample=1 if campus==147902001& rated_year ==2004; qui replace sample=1 if campus==101912018& rated_year ==2000; qui replace sample=1 if campus==91909001& rated_year ==1998; qui replace sample=1 if campus==94903001& rated_year ==1999; qui replace sample=1 if campus==234907002& rated_year ==1997; qui replace sample=1 if campus==246905001& rated_year ==2000; qui replace sample=1 if campus==139909002& rated_year ==2003; qui replace sample=1 if campus==89903001& rated_year ==1999; qui replace sample=1 if campus==249903001& rated_year ==2006; qui replace sample=1 if campus==220919001& rated_year ==1996; qui replace sample=1 if campus==74909001& rated_year ==2005; qui replace sample=1 if campus==11904002& rated_year ==2004; qui replace sample=1 if campus==93903001& rated_year ==2006; qui replace sample=1 if campus==230905001& rated_year ==2005; qui replace sample=1 if campus==57922001& rated_year ==1994; qui replace sample=1 if campus==186903001& rated_year ==2005; qui replace sample=1 if campus==226903001& rated_year ==1995; qui replace sample=1 if campus==226903001& rated_year ==2004; qui replace sample=1 if campus==71905008& rated_year ==1995; qui replace sample=1 if campus==249904001& rated_year ==2006; qui replace sample=1 if campus==1902001& rated_year ==2008; qui replace sample=1 if campus==226903001& rated_year ==1999; qui replace sample=1 if campus==185902001& rated_year ==1996; qui replace sample=1 if campus==101921001& rated_year ==2002; qui replace sample=1 if campus==101921001& rated_year ==2003; qui replace sample=1 if campus==101921001& rated_year ==2005; qui replace sample=1 if campus==74909001& rated_year ==2006; qui replace sample=1 if campus==188902001& rated_year ==2006; qui replace sample=1 if campus==246905001& rated_year ==2005; qui replace sample=1 if campus==230905001& rated_year ==1994; qui replace sample=1 if campus==159901001& rated_year ==2002; qui replace sample=1 if campus==221904001& rated_year ==2004; qui replace sample=1 if campus==101925001& rated_year ==1995; qui replace sample=1 if campus==249904001& rated_year ==2005; qui replace sample=1 if campus==227912001& rated_year ==2005; qui replace sample=1 if campus==101925001& rated_year ==2000; qui replace sample=1 if campus==101925001& rated_year ==2003; qui replace sample=1 if campus==101925001& rated_year ==2004; qui replace sample=1 if campus==54901001& rated_year ==2008; qui replace sample=1 if campus==101912003& rated_year ==2004; qui replace sample=1 if campus==140907001& rated_year ==2001; qui replace sample=1 if campus==68901047& rated_year ==1999; qui replace sample=1 if campus==71909001& rated_year ==2005; qui replace sample=1 if campus==75903001& rated_year ==2001; qui replace sample=1 if campus==128901001& rated_year ==1998; qui replace sample=1 if campus==71909001& rated_year ==1994; qui replace sample=1 if campus==101912023& rated_year ==1996; qui replace sample=1 if campus==57909008& rated_year ==1996; qui replace sample=1 if campus==120902001& rated_year ==2000; qui replace sample=1 if campus==101921001& rated_year ==1999; qui replace sample=1 if campus==75903001& rated_year ==1997; qui replace sample=1 if campus==86901001& rated_year ==2003; qui replace sample=1 if campus==230901001& rated_year ==1996; qui replace sample=1 if campus==143903001& rated_year ==2008; qui replace sample=1 if campus==91909001& rated_year ==2006; qui replace sample=1 if campus==120902001& rated_year ==1997; qui replace sample=1 if campus==128901001& rated_year ==2001; qui replace sample=1 if campus==188902001& rated_year ==2005; qui replace sample=1 if campus==76904001& rated_year ==2000; qui replace sample=1 if campus==126904001& rated_year ==2000; qui replace sample=1 if campus==74907001& rated_year ==2005; qui replace sample=1 if campus==79907005& rated_year ==1996; qui replace sample=1 if campus==246906001& rated_year ==2008; qui replace sample=1 if campus==126906001& rated_year ==2004; qui replace sample=1 if campus==61907001& rated_year ==1998; qui replace sample=1 if campus==108905001& rated_year ==2002; qui replace sample=1 if campus==61907001& rated_year ==1997; qui replace sample=1 if campus==249904001& rated_year ==2007; qui replace sample=1 if campus==1902001& rated_year ==2003; qui replace sample=1 if campus==104901001& rated_year ==2002; qui replace sample=1 if campus==69901001& rated_year ==2007; qui replace sample=1 if campus==241901001& rated_year ==1995; qui replace sample=1 if campus==120902001& rated_year ==1998; qui replace sample=1 if campus==119903001& rated_year ==2002; qui replace sample=1 if campus==116905002& rated_year ==1998; qui replace sample=1 if campus==54901001& rated_year ==2007; qui replace sample=1 if campus==246912001& rated_year ==2001; qui replace sample=1 if campus==1902001& rated_year ==1998; qui replace sample=1 if campus==74909001& rated_year ==2008; qui replace sample=1 if campus==254902001& rated_year ==1998; qui replace sample=1 if campus==254902001& rated_year ==1995; qui replace sample=1 if campus==76904001& rated_year ==1998; qui replace sample=1 if campus==71905008& rated_year ==1998; qui replace sample=1 if campus==104901001& rated_year ==2000; qui replace sample=1 if campus==166905001& rated_year ==2000; qui replace sample=1 if campus==93903001& rated_year ==1998; qui replace sample=1 if campus==8903001& rated_year ==1994; qui replace sample=1 if campus==86901001& rated_year ==1995; qui replace sample=1 if campus==15907006& rated_year ==1994; qui replace sample=1 if campus==246905001& rated_year ==2008; qui replace sample=1 if campus==101921001& rated_year ==1997; qui replace sample=1 if campus==108905001& rated_year ==2000; qui replace sample=1 if campus==227909001& rated_year ==2000; qui replace sample=1 if campus==199901001& rated_year ==1999; qui replace sample=1 if campus==166905001& rated_year ==1997; qui replace sample=1 if campus==240904001& rated_year ==2003; qui replace sample=1 if campus==149902001& rated_year ==2005; qui replace sample=1 if campus==77901001& rated_year ==2005; qui replace sample=1 if campus==71905008& rated_year ==2002; qui replace sample=1 if campus==116905002& rated_year ==2000; qui replace sample=1 if campus==74907001& rated_year ==2002; qui replace sample=1 if campus==188902001& rated_year ==2003; qui replace sample=1 if campus==230901001& rated_year ==2008; qui replace sample=1 if campus==147902001& rated_year ==2005; qui replace sample=1 if campus==160901001& rated_year ==2008; qui replace sample=1 if campus==68901047& rated_year ==1994; qui replace sample=1 if campus==240904001& rated_year ==2008; qui replace sample=1 if campus==246904001& rated_year ==1997; qui replace sample=1 if campus==31901127& rated_year ==1998; qui replace sample=1 if campus==166905001& rated_year ==2001; qui replace sample=1 if campus==246904001& rated_year ==1999; qui replace sample=1 if campus==126906001& rated_year ==1996; qui replace sample=1 if campus==5901001& rated_year ==2008; qui replace sample=1 if campus==185902001& rated_year ==1994; qui replace sample=1 if campus==112906001& rated_year ==1994; qui replace sample=1 if campus==86901001& rated_year ==1999; qui replace sample=1 if campus==54901001& rated_year ==1996; qui replace sample=1 if campus==31901127& rated_year ==2002; qui replace sample=1 if campus==101912023& rated_year ==1997; qui replace sample=1 if campus==126904001& rated_year ==2007; qui replace sample=1 if campus==226903001& rated_year ==1997; qui replace sample=1 if campus==76904001& rated_year ==1997; qui replace sample=1 if campus==237905002& rated_year ==2007; qui replace sample=1 if campus==128901001& rated_year ==1995; qui replace sample=1 if campus==249903001& rated_year ==1999; qui replace sample=1 if campus==246905001& rated_year ==2004; qui replace sample=1 if campus==234907002& rated_year ==1995; qui replace sample=1 if campus==91909001& rated_year ==2002; qui replace sample=1 if campus==246905001& rated_year ==1996; qui replace sample=1 if campus==246905001& rated_year ==1997; qui replace sample=1 if campus==246905001& rated_year ==1999; qui replace sample=1 if campus==246905001& rated_year ==2006; qui replace sample=1 if campus==240904001& rated_year ==2005; qui replace sample=1 if campus==246906001& rated_year ==1999; qui replace sample=1 if campus==43912001& rated_year ==2006; qui replace sample=1 if campus==246906001& rated_year ==2007; qui replace sample=1 if campus==249904001& rated_year ==1999; qui replace sample=1 if campus==104901001& rated_year ==2004; qui replace sample=1 if campus==249903001& rated_year ==2008; qui replace sample=1 if campus==3902001& rated_year ==2002; qui replace sample=1 if campus==249903001& rated_year ==2004; qui replace sample=1 if campus==237905002& rated_year ==1997; qui replace sample=1 if campus==237905002& rated_year ==2008; qui replace sample=1 if campus==89903001& rated_year ==2001; qui replace sample=1 if campus==237905002& rated_year ==2001; qui replace sample=1 if campus==5901001& rated_year ==1997; qui replace sample=1 if campus==249902001& rated_year ==2008; qui replace sample=1 if campus==159901001& rated_year ==1999; qui replace sample=1 if campus==249902001& rated_year ==2004; qui replace sample=1 if campus==76904001& rated_year ==2005; qui replace sample=1 if campus==249902001& rated_year ==1995; qui replace sample=1 if campus==246912001& rated_year ==2008; qui replace sample=1 if campus==230905001& rated_year ==1995; qui replace sample=1 if campus==54901001& rated_year ==2006; qui replace sample=1 if campus==249902001& rated_year ==2006; qui replace sample=1 if campus==143903001& rated_year ==2001; qui replace sample=1 if campus==67907001& rated_year ==2007; qui replace sample=1 if campus==11904002& rated_year ==2006; qui replace sample=1 if campus==61907001& rated_year ==2001; qui replace sample=1 if campus==69901001& rated_year ==2000; qui replace sample=1 if campus==208902001& rated_year ==2008; qui replace sample=1 if campus==11904002& rated_year ==1995; qui replace sample=1 if campus==69901001& rated_year ==1997; qui replace sample=1 if campus==249904001& rated_year ==2008; qui replace sample=1 if campus==249904001& rated_year ==2001; qui replace sample=1 if campus==31901127& rated_year ==2001; qui replace sample=1 if campus==147902001& rated_year ==1998; qui replace sample=1 if campus==123905001& rated_year ==2000; qui replace sample=1 if campus==234907002& rated_year ==2004; qui replace sample=1 if campus==166903001& rated_year ==1994; qui replace sample=1 if campus==192901001& rated_year ==2003; qui replace sample=1 if campus==88902001& rated_year ==2003; qui replace sample=1 if campus==113901002& rated_year ==1996; qui replace sample=1 if campus==198901001& rated_year ==2007; qui replace sample=1 if campus==246906001& rated_year ==2002; qui replace sample=1 if campus==77901001& rated_year ==2002; qui replace sample=1 if campus==143903001& rated_year ==1997; qui replace sample=1 if campus==212905005& rated_year ==1996; qui replace sample=1 if campus==101912003& rated_year ==2000; qui replace sample=1 if campus==119903001& rated_year ==2006; qui replace sample=1 if campus==88902001& rated_year ==2005; qui replace sample=1 if campus==74909001& rated_year ==2003; qui replace sample=1 if campus==171902001& rated_year ==2007; qui replace sample=1 if campus==86901001& rated_year ==2007; qui replace sample=1 if campus==75903001& rated_year ==1996; qui replace sample=1 if campus==93903001& rated_year ==2004; qui replace sample=1 if campus==140904001& rated_year ==1995; qui replace sample=1 if campus==52901001& rated_year ==1997; qui replace sample=1 if campus==88902001& rated_year ==2001; qui replace sample=1 if campus==114902001& rated_year ==2006; qui replace sample=1 if campus==94903001& rated_year ==2006; qui replace sample=1 if campus==171902001& rated_year ==2004; qui replace sample=1 if campus==246912001& rated_year ==2003; qui replace sample=1 if campus==57909008& rated_year ==2002; qui replace sample=1 if campus==67907001& rated_year ==2005; qui replace sample=1 if campus==246904001& rated_year ==1996; qui replace sample=1 if campus==8903001& rated_year ==1995; qui replace sample=1 if campus==1902001& rated_year ==2005; qui replace sample=1 if campus==69901001& rated_year ==1994; qui replace sample=1 if campus==220919001& rated_year ==1997; qui replace sample=1 if campus==1902001& rated_year ==2000; qui replace sample=1 if campus==254902001& rated_year ==2008; qui replace sample=1 if campus==15914001& rated_year ==1996; qui replace sample=1 if campus==235901001& rated_year ==1995; qui replace sample=1 if campus==7905001& rated_year ==1999; qui replace sample=1 if campus==234902001& rated_year ==1995; qui replace sample=1 if campus==249901001& rated_year ==2002; qui replace sample=1 if campus==174902001& rated_year ==2008; qui replace sample=1 if campus==57909005& rated_year ==1996; qui replace sample=1 if campus==1908002& rated_year ==2006; qui replace sample=1 if campus==15915002& rated_year ==1997; qui replace sample=1 if campus==50910001& rated_year ==2003; qui replace sample=1 if campus==181908001& rated_year ==1998; qui replace sample=1 if campus==157901001& rated_year ==1995; qui replace sample=1 if campus==204901001& rated_year ==1999; qui replace sample=1 if campus==157901001& rated_year ==1998; qui replace sample=1 if campus==157901001& rated_year ==2001; qui replace sample=1 if campus==129903001& rated_year ==1998; qui replace sample=1 if campus==130901001& rated_year ==1996; qui replace sample=1 if campus==18902001& rated_year ==2001; qui replace sample=1 if campus==101912008& rated_year ==2004; qui replace sample=1 if campus==158902001& rated_year ==1994; qui replace sample=1 if campus==188901004& rated_year ==2006; qui replace sample=1 if campus==57920002& rated_year ==1996; qui replace sample=1 if campus==212909001& rated_year ==2007; qui replace sample=1 if campus==247906001& rated_year ==2004; qui replace sample=1 if campus==126903001& rated_year ==2005; qui replace sample=1 if campus==1909001& rated_year ==2003; qui replace sample=1 if campus==158901001& rated_year ==1995; qui replace sample=1 if campus==158901001& rated_year ==1999; qui replace sample=1 if campus==184909001& rated_year ==2004; qui replace sample=1 if campus==158901001& rated_year ==2002; qui replace sample=1 if campus==57906001& rated_year ==2007; qui replace sample=1 if campus==114904001& rated_year ==1999; qui replace sample=1 if campus==158901001& rated_year ==2006; qui replace sample=1 if campus==158901001& rated_year ==2008; qui replace sample=1 if campus==249901001& rated_year ==1996; qui replace sample=1 if campus==31916001& rated_year ==1995; qui replace sample=1 if campus==112901002& rated_year ==2004; qui replace sample=1 if campus==236901002& rated_year ==1995; qui replace sample=1 if campus==15915003& rated_year ==1999; qui replace sample=1 if campus==112908001& rated_year ==2003; qui replace sample=1 if campus==212904002& rated_year ==2006; qui replace sample=1 if campus==219903001& rated_year ==2002; qui replace sample=1 if campus==109907001& rated_year ==1994; qui replace sample=1 if campus==129906002& rated_year ==2000; qui replace sample=1 if campus==180902001& rated_year ==2005; qui replace sample=1 if campus==152907001& rated_year ==2007; qui replace sample=1 if campus==158902001& rated_year ==2006; qui replace sample=1 if campus==247903001& rated_year ==1994; qui replace sample=1 if campus==158905001& rated_year ==1994; qui replace sample=1 if campus==149901001& rated_year ==2004; qui replace sample=1 if campus==43910007& rated_year ==1996; qui replace sample=1 if campus==71908001& rated_year ==1996; qui replace sample=1 if campus==172902001& rated_year ==1998; qui replace sample=1 if campus==127901001& rated_year ==1996; qui replace sample=1 if campus==158905001& rated_year ==2006; qui replace sample=1 if campus==126901001& rated_year ==2007; qui replace sample=1 if campus==92901001& rated_year ==1998; qui replace sample=1 if campus==57914001& rated_year ==2000; qui replace sample=1 if campus==127903001& rated_year ==1999; qui replace sample=1 if campus==158906002& rated_year ==1994; qui replace sample=1 if campus==127901001& rated_year ==1994; qui replace sample=1 if campus==158906002& rated_year ==2000; qui replace sample=1 if campus==158906002& rated_year ==2001; qui replace sample=1 if campus==91917001& rated_year ==1994; qui replace sample=1 if campus==101924001& rated_year ==2004; qui replace sample=1 if campus==187901001& rated_year ==1995; qui replace sample=1 if campus==210903002& rated_year ==2006; qui replace sample=1 if campus==31916005& rated_year ==2002; qui replace sample=1 if campus==95903001& rated_year ==1995; qui replace sample=1 if campus==126911001& rated_year ==1996; qui replace sample=1 if campus==31901004& rated_year ==2002; qui replace sample=1 if campus==14908001& rated_year ==2002; qui replace sample=1 if campus==245902001& rated_year ==2006; qui replace sample=1 if campus==134901001& rated_year ==2008; qui replace sample=1 if campus==163908001& rated_year ==2006; qui replace sample=1 if campus==113903002& rated_year ==1996; qui replace sample=1 if campus==71902011& rated_year ==2005; qui replace sample=1 if campus==121903001& rated_year ==1999; qui replace sample=1 if campus==163908001& rated_year ==1996; qui replace sample=1 if campus==191901002& rated_year ==1998; qui replace sample=1 if campus==43905001& rated_year ==1997; qui replace sample=1 if campus==61901003& rated_year ==2004; qui replace sample=1 if campus==232903001& rated_year ==1998; qui replace sample=1 if campus==37901001& rated_year ==2000; qui replace sample=1 if campus==61911001& rated_year ==2008; qui replace sample=1 if campus==57911001& rated_year ==1999; qui replace sample=1 if campus==237902001& rated_year ==2000; qui replace sample=1 if campus==66902001& rated_year ==1998; qui replace sample=1 if campus==61902001& rated_year ==2004; qui replace sample=1 if campus==225902001& rated_year ==1994; qui replace sample=1 if campus==31903003& rated_year ==2008; qui replace sample=1 if campus==7905001& rated_year ==2000; qui replace sample=1 if campus==62904001& rated_year ==1995; qui replace sample=1 if campus==71905005& rated_year ==1998; qui replace sample=1 if campus==62901001& rated_year ==2005; qui replace sample=1 if campus==82902001& rated_year ==1994; qui replace sample=1 if campus==45903001& rated_year ==2008; qui replace sample=1 if campus==178903001& rated_year ==1998; qui replace sample=1 if campus==101912010& rated_year ==1999; qui replace sample=1 if campus==129902001& rated_year ==1998; qui replace sample=1 if campus==57905023& rated_year ==2004; qui replace sample=1 if campus==158902001& rated_year ==2000; qui replace sample=1 if campus==205904001& rated_year ==1997; qui replace sample=1 if campus==43903001& rated_year ==2001; qui replace sample=1 if campus==227901007& rated_year ==2004; qui replace sample=1 if campus==121904001& rated_year ==1994; qui replace sample=1 if campus==15910005& rated_year ==1997; qui replace sample=1 if campus==108913001& rated_year ==1996; qui replace sample=1 if campus==15909001& rated_year ==1997; qui replace sample=1 if campus==243901001& rated_year ==2006; qui replace sample=1 if campus==184909001& rated_year ==1996; qui replace sample=1 if campus==15910001& rated_year ==2007; qui replace sample=1 if campus==43905001& rated_year ==2003; qui replace sample=1 if campus==31905001& rated_year ==1999; qui replace sample=1 if campus==15901001& rated_year ==2000; qui replace sample=1 if campus==14903001& rated_year ==2005; qui replace sample=1 if campus==94901001& rated_year ==1995; qui replace sample=1 if campus==57905015& rated_year ==2002; qui replace sample=1 if campus==31916001& rated_year ==1994; qui replace sample=1 if campus==166901002& rated_year ==2001; qui replace sample=1 if campus==126905001& rated_year ==2002; qui replace sample=1 if campus==101908001& rated_year ==2007; qui replace sample=1 if campus==15915007& rated_year ==2002; qui replace sample=1 if campus==101911002& rated_year ==2001; qui replace sample=1 if campus==7904001& rated_year ==2003; qui replace sample=1 if campus==15910005& rated_year ==2001; qui replace sample=1 if campus==248902001& rated_year ==1996; qui replace sample=1 if campus==11902001& rated_year ==2001; qui replace sample=1 if campus==175902001& rated_year ==1996; qui replace sample=1 if campus==184904001& rated_year ==2004; qui replace sample=1 if campus==31905001& rated_year ==1997; qui replace sample=1 if campus==176902002& rated_year ==2001; qui replace sample=1 if campus==68901045& rated_year ==1995; qui replace sample=1 if campus==101920001& rated_year ==2004; qui replace sample=1 if campus==15907002& rated_year ==2003; qui replace sample=1 if campus==161901001& rated_year ==2000; qui replace sample=1 if campus==161901001& rated_year ==2001; qui replace sample=1 if campus==161901001& rated_year ==2002; qui replace sample=1 if campus==196902001& rated_year ==2004; qui replace sample=1 if campus==15915002& rated_year ==1996; qui replace sample=1 if campus==161919001& rated_year ==2005; qui replace sample=1 if campus==45903001& rated_year ==2003; qui replace sample=1 if campus==15910004& rated_year ==2003; qui replace sample=1 if campus==161903001& rated_year ==1998; qui replace sample=1 if campus==161903001& rated_year ==2001; qui replace sample=1 if campus==170902001& rated_year ==2005; qui replace sample=1 if campus==1908002& rated_year ==1999; qui replace sample=1 if campus==140905002& rated_year ==2006; qui replace sample=1 if campus==43910005& rated_year ==2002; qui replace sample=1 if campus==108904001& rated_year ==2005; qui replace sample=1 if campus==91906002& rated_year ==2001; qui replace sample=1 if campus==249901001& rated_year ==1999; qui replace sample=1 if campus==170908001& rated_year ==1997; qui replace sample=1 if campus==158902001& rated_year ==1995; qui replace sample=1 if campus==109907001& rated_year ==2004; qui replace sample=1 if campus==108904003& rated_year ==2003; qui replace sample=1 if campus==125902001& rated_year ==2002; qui replace sample=1 if campus==146906001& rated_year ==2008; qui replace sample=1 if campus==180902001& rated_year ==2004; qui replace sample=1 if campus==161906002& rated_year ==1996; qui replace sample=1 if campus==152903001& rated_year ==2008; qui replace sample=1 if campus==14903001& rated_year ==1999; qui replace sample=1 if campus==12901001& rated_year ==2003; qui replace sample=1 if campus==161906002& rated_year ==2000; qui replace sample=1 if campus==221911001& rated_year ==1999; qui replace sample=1 if campus==61912001& rated_year ==2004; qui replace sample=1 if campus==161906002& rated_year ==2005; qui replace sample=1 if campus==161906002& rated_year ==2007; qui replace sample=1 if campus==15905002& rated_year ==2005; qui replace sample=1 if campus==113906001& rated_year ==2008; qui replace sample=1 if campus==233901002& rated_year ==1996; qui replace sample=1 if campus==230908001& rated_year ==2004; qui replace sample=1 if campus==123914001& rated_year ==2005; qui replace sample=1 if campus==248901001& rated_year ==2000; qui replace sample=1 if campus==212905001& rated_year ==1998; qui replace sample=1 if campus==84906001& rated_year ==2008; qui replace sample=1 if campus==137901001& rated_year ==2004; qui replace sample=1 if campus==31913001& rated_year ==2000; qui replace sample=1 if campus==241903001& rated_year ==1998; qui replace sample=1 if campus==182903001& rated_year ==1994; qui replace sample=1 if campus==201908001& rated_year ==2008; qui replace sample=1 if campus==220905011& rated_year ==2004; qui replace sample=1 if campus==161907001& rated_year ==1997; qui replace sample=1 if campus==178904001& rated_year ==2004; qui replace sample=1 if campus==108903001& rated_year ==2000; qui replace sample=1 if campus==240901003& rated_year ==2006; qui replace sample=1 if campus==91913001& rated_year ==2005; qui replace sample=1 if campus==145901002& rated_year ==1994; qui replace sample=1 if campus==57903001& rated_year ==1995; qui replace sample=1 if campus==220905005& rated_year ==1999; qui replace sample=1 if campus==89901001& rated_year ==2008; qui replace sample=1 if campus==161914003& rated_year ==1997; qui replace sample=1 if campus==221912001& rated_year ==1995; qui replace sample=1 if campus==15908002& rated_year ==2008; qui replace sample=1 if campus==58906001& rated_year ==1999; qui replace sample=1 if campus==204904001& rated_year ==2002; qui replace sample=1 if campus==61901003& rated_year ==2003; qui replace sample=1 if campus==101912033& rated_year ==2006; qui replace sample=1 if campus==84910001& rated_year ==1994; qui replace sample=1 if campus==146905001& rated_year ==1995; qui replace sample=1 if campus==37907002& rated_year ==2003; qui replace sample=1 if campus==248901001& rated_year ==1996; qui replace sample=1 if campus==161908002& rated_year ==1994; qui replace sample=1 if campus==205905001& rated_year ==2003; qui replace sample=1 if campus==31903002& rated_year ==2004; qui replace sample=1 if campus==102903002& rated_year ==2004; qui replace sample=1 if campus==161908002& rated_year ==2002; qui replace sample=1 if campus==161908002& rated_year ==2007; qui replace sample=1 if campus==161908002& rated_year ==2008; qui replace sample=1 if campus==71902004& rated_year ==2008; qui replace sample=1 if campus==129903001& rated_year ==2007; qui replace sample=1 if campus==202905002& rated_year ==1999; qui replace sample=1 if campus==248901001& rated_year ==1994; qui replace sample=1 if campus==91901001& rated_year ==1999; qui replace sample=1 if campus==247901001& rated_year ==2007; qui replace sample=1 if campus==33904001& rated_year ==2007; qui replace sample=1 if campus==247903001& rated_year ==1995; qui replace sample=1 if campus==184902001& rated_year ==2006; qui replace sample=1 if campus==198905002& rated_year ==2002; qui replace sample=1 if campus==161909001& rated_year ==2005; qui replace sample=1 if campus==178902001& rated_year ==1999; qui replace sample=1 if campus==227907001& rated_year ==2001; qui replace sample=1 if campus==227901006& rated_year ==2006; qui replace sample=1 if campus==91913001& rated_year ==2000; qui replace sample=1 if campus==101920005& rated_year ==2005; qui replace sample=1 if campus==161910001& rated_year ==1999; qui replace sample=1 if campus==161910001& rated_year ==2001; qui replace sample=1 if campus==190903001& rated_year ==1999; qui replace sample=1 if campus==15908001& rated_year ==2008; qui replace sample=1 if campus==101902001& rated_year ==1995; qui replace sample=1 if campus==223901001& rated_year ==2003; qui replace sample=1 if campus==51901001& rated_year ==2005; qui replace sample=1 if campus==161912001& rated_year ==1997; qui replace sample=1 if campus==161912001& rated_year ==1998; qui replace sample=1 if campus==13903001& rated_year ==2008; qui replace sample=1 if campus==90904001& rated_year ==2000; qui replace sample=1 if campus==161912001& rated_year ==2006; qui replace sample=1 if campus==101919002& rated_year ==2008; qui replace sample=1 if campus==92907001& rated_year ==1995; qui replace sample=1 if campus==65901001& rated_year ==1994; qui replace sample=1 if campus==177902001& rated_year ==2005; qui replace sample=1 if campus==251902001& rated_year ==2007; qui replace sample=1 if campus==100908001& rated_year ==2000; qui replace sample=1 if campus==57905002& rated_year ==1999; qui replace sample=1 if campus==191901001& rated_year ==2002; qui replace sample=1 if campus==154901001& rated_year ==2006; qui replace sample=1 if campus==161914002& rated_year ==2002; qui replace sample=1 if campus==221901002& rated_year ==2006; qui replace sample=1 if campus==161914002& rated_year ==2005; qui replace sample=1 if campus==167901001& rated_year ==2008; qui replace sample=1 if campus==61902002& rated_year ==2005; qui replace sample=1 if campus==239903001& rated_year ==1994; qui replace sample=1 if campus==161914003& rated_year ==2000; qui replace sample=1 if campus==47901001& rated_year ==2004; qui replace sample=1 if campus==57905026& rated_year ==1994; qui replace sample=1 if campus==161914003& rated_year ==2005; qui replace sample=1 if campus==198905002& rated_year ==2005; qui replace sample=1 if campus==161914003& rated_year ==2008; qui replace sample=1 if campus==220910001& rated_year ==2003; qui replace sample=1 if campus==214903001& rated_year ==1998; qui replace sample=1 if campus==108903001& rated_year ==1996; qui replace sample=1 if campus==152907001& rated_year ==2003; qui replace sample=1 if campus==13903001& rated_year ==2007; qui replace sample=1 if campus==237902001& rated_year ==1998; qui replace sample=1 if campus==241906001& rated_year ==2002; qui replace sample=1 if campus==240901001& rated_year ==2008; qui replace sample=1 if campus==122901002& rated_year ==2006; qui replace sample=1 if campus==75902001& rated_year ==1994; qui replace sample=1 if campus==57905038& rated_year ==1994; qui replace sample=1 if campus==71902005& rated_year ==2005; qui replace sample=1 if campus==108911001& rated_year ==2003; qui replace sample=1 if campus==10902001& rated_year ==1995; qui replace sample=1 if campus==111901001& rated_year ==2008; qui replace sample=1 if campus==123907005& rated_year ==1994; qui replace sample=1 if campus==92903001& rated_year ==2004; qui replace sample=1 if campus==102904002& rated_year ==2003; qui replace sample=1 if campus==144902001& rated_year ==2008; qui replace sample=1 if campus==30906001& rated_year ==2002; qui replace sample=1 if campus==57905034& rated_year ==1999; qui replace sample=1 if campus==57914001& rated_year ==2006; qui replace sample=1 if campus==108914001& rated_year ==2005; qui replace sample=1 if campus==108909003& rated_year ==1997; qui replace sample=1 if campus==7901001& rated_year ==1994; qui replace sample=1 if campus==250905001& rated_year ==2006; qui replace sample=1 if campus==246913001& rated_year ==2004; qui replace sample=1 if campus==96904001& rated_year ==2001; qui replace sample=1 if campus==161916001& rated_year ==1994; qui replace sample=1 if campus==161916001& rated_year ==1996; qui replace sample=1 if campus==247906001& rated_year ==2006; qui replace sample=1 if campus==43910004& rated_year ==2000; qui replace sample=1 if campus==161916001& rated_year ==2001; qui replace sample=1 if campus==37901001& rated_year ==2002; qui replace sample=1 if campus==161916001& rated_year ==2007; qui replace sample=1 if campus==161916001& rated_year ==2008; qui replace sample=1 if campus==102901002& rated_year ==2002; qui replace sample=1 if campus==39903001& rated_year ==1996; qui replace sample=1 if campus==71901001& rated_year ==2005; qui replace sample=1 if campus==109904001& rated_year ==2008; qui replace sample=1 if campus==125903001& rated_year ==1994; qui replace sample=1 if campus==93901001& rated_year ==2003; qui replace sample=1 if campus==243903001& rated_year ==2004; qui replace sample=1 if campus==13903001& rated_year ==2002; qui replace sample=1 if campus==157901001& rated_year ==2007; qui replace sample=1 if campus==81904001& rated_year ==2006; qui replace sample=1 if campus==161912001& rated_year ==2001; qui replace sample=1 if campus==247906001& rated_year ==2003; qui replace sample=1 if campus==124901001& rated_year ==2001; qui replace sample=1 if campus==139912001& rated_year ==1999; qui replace sample=1 if campus==101912004& rated_year ==2002; qui replace sample=1 if campus==19909001& rated_year ==1994; qui replace sample=1 if campus==91910001& rated_year ==2005; qui replace sample=1 if campus==79910001& rated_year ==2003; qui replace sample=1 if campus==130901001& rated_year ==1995; qui replace sample=1 if campus==11901001& rated_year ==2000; qui replace sample=1 if campus==71905003& rated_year ==2007; qui replace sample=1 if campus==163901001& rated_year ==1995; qui replace sample=1 if campus==161918001& rated_year ==2002; qui replace sample=1 if campus==66901001& rated_year ==2007; qui replace sample=1 if campus==25909001& rated_year ==2002; qui replace sample=1 if campus==161918001& rated_year ==2007; qui replace sample=1 if campus==161918001& rated_year ==2008; qui replace sample=1 if campus==220905008& rated_year ==2005; qui replace sample=1 if campus==247906001& rated_year ==1996; qui replace sample=1 if campus==163901001& rated_year ==2003; qui replace sample=1 if campus==161909001& rated_year ==1994; qui replace sample=1 if campus==181908001& rated_year ==2006; qui replace sample=1 if campus==212902001& rated_year ==2003; qui replace sample=1 if campus==15907007& rated_year ==2007; qui replace sample=1 if campus==15907001& rated_year ==1997; qui replace sample=1 if campus==98901001& rated_year ==2000; qui replace sample=1 if campus==101920001& rated_year ==1998; qui replace sample=1 if campus==14902001& rated_year ==1999; qui replace sample=1 if campus==120901001& rated_year ==1996; qui replace sample=1 if campus==27904001& rated_year ==1995; qui replace sample=1 if campus==116902001& rated_year ==2000; qui replace sample=1 if campus==247903001& rated_year ==2004; qui replace sample=1 if campus==201910002& rated_year ==2005; qui replace sample=1 if campus==101902002& rated_year ==2005; qui replace sample=1 if campus==126902001& rated_year ==2008; qui replace sample=1 if campus==45902001& rated_year ==2001; qui replace sample=1 if campus==57905024& rated_year ==2002; qui replace sample=1 if campus==83903001& rated_year ==1995; qui replace sample=1 if campus==101908001& rated_year ==1998; qui replace sample=1 if campus==84903001& rated_year ==2000; qui replace sample=1 if campus==84911001& rated_year ==2003; qui replace sample=1 if campus==227901006& rated_year ==2001; qui replace sample=1 if campus==187907002& rated_year ==2000; qui replace sample=1 if campus==45903001& rated_year ==1995; qui replace sample=1 if campus==43903001& rated_year ==1994; qui replace sample=1 if campus==232903001& rated_year ==2003; qui replace sample=1 if campus==200904001& rated_year ==2004; qui replace sample=1 if campus==161907001& rated_year ==1995; qui replace sample=1 if campus==91902001& rated_year ==1995; qui replace sample=1 if campus==145901002& rated_year ==2003; qui replace sample=1 if campus==94904001& rated_year ==1999; qui replace sample=1 if campus==70912002& rated_year ==1999; qui replace sample=1 if campus==112908001& rated_year ==2002; qui replace sample=1 if campus==71903001& rated_year ==1999; qui replace sample=1 if campus==145901002& rated_year ==1998; qui replace sample=1 if campus==161920001& rated_year ==1998; qui replace sample=1 if campus==205901001& rated_year ==2008; qui replace sample=1 if campus==102906001& rated_year ==1995; qui replace sample=1 if campus==161920001& rated_year ==2005; qui replace sample=1 if campus==61902004& rated_year ==2003; qui replace sample=1 if campus==232903002& rated_year ==2007; qui replace sample=1 if campus==98901001& rated_year ==2006; qui replace sample=1 if campus==205901001& rated_year ==1997; qui replace sample=1 if campus==185901001& rated_year ==1996; qui replace sample=1 if campus==65901001& rated_year ==2005; qui replace sample=1 if campus==72902001& rated_year ==2008; qui replace sample=1 if campus==163901001& rated_year ==1998; qui replace sample=1 if campus==111901001& rated_year ==1997; qui replace sample=1 if campus==230903001& rated_year ==2001; qui replace sample=1 if campus==220905002& rated_year ==2001; qui replace sample=1 if campus==127901001& rated_year ==2004; qui replace sample=1 if campus==161921001& rated_year ==2006; qui replace sample=1 if campus==227901002& rated_year ==1999; qui replace sample=1 if campus==243901001& rated_year ==2001; qui replace sample=1 if campus==178902001& rated_year ==2008; qui replace sample=1 if campus==70905002& rated_year ==2001; qui replace sample=1 if campus==166901002& rated_year ==2003; qui replace sample=1 if campus==31903001& rated_year ==1998; qui replace sample=1 if campus==150901001& rated_year ==2000; qui replace sample=1 if campus==54903001& rated_year ==2000; qui replace sample=1 if campus==45902001& rated_year ==2006; qui replace sample=1 if campus==201914001& rated_year ==1999; qui replace sample=1 if campus==101912011& rated_year ==1996; qui replace sample=1 if campus==161922001& rated_year ==2002; qui replace sample=1 if campus==235902001& rated_year ==1995; qui replace sample=1 if campus==107905001& rated_year ==1994; qui replace sample=1 if campus==101912009& rated_year ==2007; qui replace sample=1 if campus==67902001& rated_year ==2007; qui replace sample=1 if campus==150901001& rated_year ==2007; qui replace sample=1 if campus==101912025& rated_year ==1999; qui replace sample=1 if campus==220904001& rated_year ==2004; qui replace sample=1 if campus==57905015& rated_year ==1997; qui replace sample=1 if campus==101920001& rated_year ==1997; qui replace sample=1 if campus==245902001& rated_year ==2004; qui replace sample=1 if campus==220905010& rated_year ==2008; qui replace sample=1 if campus==49905001& rated_year ==2005; qui replace sample=1 if campus==161923001& rated_year ==2007; qui replace sample=1 if campus==15915004& rated_year ==2003; qui replace sample=1 if campus==71906001& rated_year ==2005; qui replace sample=1 if campus==97902001& rated_year ==2008; qui replace sample=1 if campus==112908001& rated_year ==1999; qui replace sample=1 if campus==101907007& rated_year ==2007; qui replace sample=1 if campus==220905004& rated_year ==2004; qui replace sample=1 if campus==161901001& rated_year ==2006; qui replace sample=1 if campus==15915005& rated_year ==2007; qui replace sample=1 if campus==74903001& rated_year ==2005; qui replace sample=1 if campus==31905001& rated_year ==1994; qui replace sample=1 if campus==163901001& rated_year ==1996; qui replace sample=1 if campus==108908001& rated_year ==2005; qui replace sample=1 if campus==43914001& rated_year ==1998; qui replace sample=1 if campus==100907001& rated_year ==1998; qui replace sample=1 if campus==101912010& rated_year ==2006; qui replace sample=1 if campus==43902001& rated_year ==1994; qui replace sample=1 if campus==184902001& rated_year ==1995; qui replace sample=1 if campus==223901001& rated_year ==2002; qui replace sample=1 if campus==113906001& rated_year ==1998; qui replace sample=1 if campus==47902001& rated_year ==1995; qui replace sample=1 if campus==246909004& rated_year ==2001; qui replace sample=1 if campus==71908001& rated_year ==1994; qui replace sample=1 if campus==19902002& rated_year ==1995; qui replace sample=1 if campus==116915001& rated_year ==1998; qui replace sample=1 if campus==71905005& rated_year ==2000; qui replace sample=1 if campus==226906001& rated_year ==2004; qui replace sample=1 if campus==232902001& rated_year ==1995; qui replace sample=1 if campus==28903001& rated_year ==1995; qui replace sample=1 if campus==108916001& rated_year ==1997; qui replace sample=1 if campus==18907001& rated_year ==2008; qui replace sample=1 if campus==235901001& rated_year ==1999; qui replace sample=1 if campus==161920001& rated_year ==2006; qui replace sample=1 if campus==240903002& rated_year ==2003; qui replace sample=1 if campus==178904004& rated_year ==2005; qui replace sample=1 if campus==163903001& rated_year ==2006; qui replace sample=1 if campus==163903001& rated_year ==2008; qui replace sample=1 if campus==163904001& rated_year ==1994; qui replace sample=1 if campus==163904001& rated_year ==1995; qui replace sample=1 if campus==174908001& rated_year ==2008; qui replace sample=1 if campus==163904001& rated_year ==1999; qui replace sample=1 if campus==163904001& rated_year ==2001; qui replace sample=1 if campus==71901002& rated_year ==2002; qui replace sample=1 if campus==117904001& rated_year ==2001; qui replace sample=1 if campus==163904001& rated_year ==2005; qui replace sample=1 if campus==163904001& rated_year ==2006; qui replace sample=1 if campus==50902001& rated_year ==2000; qui replace sample=1 if campus==170906001& rated_year ==1999; qui replace sample=1 if campus==84906001& rated_year ==2003; qui replace sample=1 if campus==57909003& rated_year ==1999; qui replace sample=1 if campus==19908001& rated_year ==2002; qui replace sample=1 if campus==57913001& rated_year ==2004; qui replace sample=1 if campus==212905001& rated_year ==1994; qui replace sample=1 if campus==247904001& rated_year ==2008; qui replace sample=1 if campus==13905001& rated_year ==2001; qui replace sample=1 if campus==57905006& rated_year ==2001; qui replace sample=1 if campus==247901001& rated_year ==2001; qui replace sample=1 if campus==247904001& rated_year ==2007; qui replace sample=1 if campus==163908001& rated_year ==2002; qui replace sample=1 if campus==57905032& rated_year ==2008; qui replace sample=1 if campus==163908001& rated_year ==2005; qui replace sample=1 if campus==108906001& rated_year ==2007; qui replace sample=1 if campus==31903001& rated_year ==1996; qui replace sample=1 if campus==101914005& rated_year ==2005; qui replace sample=1 if campus==182902001& rated_year ==2003; qui replace sample=1 if campus==84901001& rated_year ==2004; qui replace sample=1 if campus==15915005& rated_year ==2001; qui replace sample=1 if campus==246902001& rated_year ==1998; qui replace sample=1 if campus==79907001& rated_year ==2008; qui replace sample=1 if campus==72903001& rated_year ==2007; qui replace sample=1 if campus==230903001& rated_year ==2006; qui replace sample=1 if campus==71902009& rated_year ==2002; qui replace sample=1 if campus==101905001& rated_year ==2008; qui replace sample=1 if campus==57912002& rated_year ==2008; qui replace sample=1 if campus==227901004& rated_year ==1997; qui replace sample=1 if campus==15905001& rated_year ==1996; qui replace sample=1 if campus==39902001& rated_year ==2007; qui replace sample=1 if campus==213901001& rated_year ==2006; qui replace sample=1 if campus==71902001& rated_year ==2004; qui replace sample=1 if campus==239901001& rated_year ==2002; qui replace sample=1 if campus==165902001& rated_year ==2005; qui replace sample=1 if campus==227901008& rated_year ==1997; qui replace sample=1 if campus==15905003& rated_year ==2005; qui replace sample=1 if campus==26902001& rated_year ==1995; qui replace sample=1 if campus==243903001& rated_year ==2007; qui replace sample=1 if campus==64903001& rated_year ==2006; qui replace sample=1 if campus==220902001& rated_year ==1994; qui replace sample=1 if campus==101920006& rated_year ==2007; qui replace sample=1 if campus==71905014& rated_year ==1997; qui replace sample=1 if campus==141902001& rated_year ==2008; qui replace sample=1 if campus==31903001& rated_year ==2001; qui replace sample=1 if campus==152909001& rated_year ==2006; qui replace sample=1 if campus==205903001& rated_year ==2002; qui replace sample=1 if campus==14909002& rated_year ==1998; qui replace sample=1 if campus==112901002& rated_year ==2008; qui replace sample=1 if campus==182903001& rated_year ==1997; qui replace sample=1 if campus==12901001& rated_year ==2002; qui replace sample=1 if campus==220905016& rated_year ==1995; qui replace sample=1 if campus==236902002& rated_year ==1998; qui replace sample=1 if campus==71905007& rated_year ==2007; qui replace sample=1 if campus==235902001& rated_year ==2000; qui replace sample=1 if campus==243905002& rated_year ==2003; qui replace sample=1 if campus==133903001& rated_year ==2000; qui replace sample=1 if campus==113903002& rated_year ==2007; qui replace sample=1 if campus==225902001& rated_year ==2004; qui replace sample=1 if campus==165901042& rated_year ==2007; qui replace sample=1 if campus==231901001& rated_year ==2002; qui replace sample=1 if campus==101912004& rated_year ==1994; qui replace sample=1 if campus==16902001& rated_year ==2001; qui replace sample=1 if campus==107910001& rated_year ==1994; qui replace sample=1 if campus==79901001& rated_year ==2003; qui replace sample=1 if campus==108914001& rated_year ==1996; qui replace sample=1 if campus==101908001& rated_year ==2006; qui replace sample=1 if campus==68901045& rated_year ==1996; qui replace sample=1 if campus==15909001& rated_year ==1995; qui replace sample=1 if campus==165901042& rated_year ==2006; qui replace sample=1 if campus==180902001& rated_year ==2000; qui replace sample=1 if campus==34907001& rated_year ==1995; qui replace sample=1 if campus==177901001& rated_year ==2007; qui replace sample=1 if campus==39903001& rated_year ==2007; qui replace sample=1 if campus==188901004& rated_year ==1999; qui replace sample=1 if campus==71902008& rated_year ==1994; qui replace sample=1 if campus==123910001& rated_year ==1997; qui replace sample=1 if campus==146902002& rated_year ==2002; qui replace sample=1 if campus==71905007& rated_year ==2005; qui replace sample=1 if campus==34905002& rated_year ==1998; qui replace sample=1 if campus==84906001& rated_year ==2000; qui replace sample=1 if campus==227901009& rated_year ==1994; qui replace sample=1 if campus==43903001& rated_year ==1995; qui replace sample=1 if campus==101917004& rated_year ==2008; qui replace sample=1 if campus==184904001& rated_year ==2002; qui replace sample=1 if campus==165902001& rated_year ==1994; qui replace sample=1 if campus==15915004& rated_year ==2004; qui replace sample=1 if campus==220905010& rated_year ==1998; qui replace sample=1 if campus==79901002& rated_year ==2003; qui replace sample=1 if campus==146905001& rated_year ==1996; qui replace sample=1 if campus==250905001& rated_year ==2001; qui replace sample=1 if campus==165902001& rated_year ==2004; qui replace sample=1 if campus==129903001& rated_year ==2002; qui replace sample=1 if campus==102902001& rated_year ==1996; qui replace sample=1 if campus==101902003& rated_year ==2001; qui replace sample=1 if campus==90904001& rated_year ==1997; qui replace sample=1 if campus==166901002& rated_year ==2000; qui replace sample=1 if campus==161908002& rated_year ==1996; qui replace sample=1 if campus==15907008& rated_year ==2007; qui replace sample=1 if campus==205906001& rated_year ==1997; qui replace sample=1 if campus==101912015& rated_year ==1995; qui replace sample=1 if campus==178903001& rated_year ==1999; qui replace sample=1 if campus==8902001& rated_year ==2000; qui replace sample=1 if campus==220905006& rated_year ==1995; qui replace sample=1 if campus==31916001& rated_year ==2001; qui replace sample=1 if campus==166904001& rated_year ==1994; qui replace sample=1 if campus==91913001& rated_year ==2006; qui replace sample=1 if campus==240901003& rated_year ==2003; qui replace sample=1 if campus==50902001& rated_year ==1996; qui replace sample=1 if campus==237904002& rated_year ==1996; qui replace sample=1 if campus==166904001& rated_year ==2003; qui replace sample=1 if campus==166904001& rated_year ==2006; qui replace sample=1 if campus==152908001& rated_year ==2006; qui replace sample=1 if campus==226903002& rated_year ==2002; qui replace sample=1 if campus==152902001& rated_year ==1999; qui replace sample=1 if campus==43903001& rated_year ==2006; qui replace sample=1 if campus==15907003& rated_year ==1998; qui replace sample=1 if campus==221911001& rated_year ==1998; qui replace sample=1 if campus==178904005& rated_year ==2005; qui replace sample=1 if campus==19903001& rated_year ==1997; qui replace sample=1 if campus==184903001& rated_year ==2001; qui replace sample=1 if campus==15911001& rated_year ==2008; qui replace sample=1 if campus==178909001& rated_year ==2000; qui replace sample=1 if campus==175903001& rated_year ==2000; qui replace sample=1 if campus==1909001& rated_year ==1998; qui replace sample=1 if campus==77902001& rated_year ==2002; qui replace sample=1 if campus==29901001& rated_year ==1999; qui replace sample=1 if campus==121906001& rated_year ==2003; qui replace sample=1 if campus==101902003& rated_year ==2004; qui replace sample=1 if campus==101912005& rated_year ==2001; qui replace sample=1 if campus==101912024& rated_year ==1995; qui replace sample=1 if campus==72902001& rated_year ==2004; qui replace sample=1 if campus==167901001& rated_year ==1994; qui replace sample=1 if campus==158901001& rated_year ==1997; qui replace sample=1 if campus==167901001& rated_year ==1996; qui replace sample=1 if campus==57905015& rated_year ==2003; qui replace sample=1 if campus==167901001& rated_year ==1998; qui replace sample=1 if campus==85902001& rated_year ==2000; qui replace sample=1 if campus==49901001& rated_year ==1997; qui replace sample=1 if campus==13905001& rated_year ==2000; qui replace sample=1 if campus==200901001& rated_year ==2002; qui replace sample=1 if campus==101912019& rated_year ==2005; qui replace sample=1 if campus==178909001& rated_year ==1998; qui replace sample=1 if campus==82903001& rated_year ==2004; qui replace sample=1 if campus==246913001& rated_year ==2008; qui replace sample=1 if campus==181907001& rated_year ==1996; qui replace sample=1 if campus==92901001& rated_year ==1999; qui replace sample=1 if campus==34905002& rated_year ==1996; qui replace sample=1 if campus==101912033& rated_year ==2000; qui replace sample=1 if campus==68901003& rated_year ==2000; qui replace sample=1 if campus==188901001& rated_year ==2003; qui replace sample=1 if campus==198903001& rated_year ==1995; qui replace sample=1 if campus==126903001& rated_year ==2006; qui replace sample=1 if campus==14902001& rated_year ==1995; qui replace sample=1 if campus==26902001& rated_year ==2003; qui replace sample=1 if campus==207901001& rated_year ==1999; qui replace sample=1 if campus==50910001& rated_year ==2000; qui replace sample=1 if campus==228903001& rated_year ==2006; qui replace sample=1 if campus==102905001& rated_year ==1999; qui replace sample=1 if campus==28903001& rated_year ==1999; qui replace sample=1 if campus==108907001& rated_year ==1995; qui replace sample=1 if campus==168901001& rated_year ==1999; qui replace sample=1 if campus==125902001& rated_year ==2003; qui replace sample=1 if campus==212909001& rated_year ==2001; qui replace sample=1 if campus==7905001& rated_year ==2005; qui replace sample=1 if campus==246913001& rated_year ==2005; qui replace sample=1 if campus==8902001& rated_year ==1997; qui replace sample=1 if campus==230902002& rated_year ==2000; qui replace sample=1 if campus==15909001& rated_year ==1994; qui replace sample=1 if campus==101920006& rated_year ==2001; qui replace sample=1 if campus==7902001& rated_year ==2004; qui replace sample=1 if campus==166904001& rated_year ==2005; qui replace sample=1 if campus==121903001& rated_year ==2005; qui replace sample=1 if campus==220908001& rated_year ==1997; qui replace sample=1 if campus==229905001& rated_year ==2006; qui replace sample=1 if campus==227904001& rated_year ==1998; qui replace sample=1 if campus==57905036& rated_year ==1995; qui replace sample=1 if campus==152908001& rated_year ==2008; qui replace sample=1 if campus==170902001& rated_year ==2003; qui replace sample=1 if campus==79910001& rated_year ==1999; qui replace sample=1 if campus==3904001& rated_year ==2005; qui replace sample=1 if campus==169901001& rated_year ==2001; qui replace sample=1 if campus==91902001& rated_year ==2008; qui replace sample=1 if campus==169901001& rated_year ==2007; qui replace sample=1 if campus==169902001& rated_year ==1996; qui replace sample=1 if campus==169902001& rated_year ==2000; qui replace sample=1 if campus==73905001& rated_year ==1995; qui replace sample=1 if campus==82903001& rated_year ==1997; qui replace sample=1 if campus==57905018& rated_year ==2003; qui replace sample=1 if campus==3905001& rated_year ==2006; qui replace sample=1 if campus==111901001& rated_year ==1996; qui replace sample=1 if campus==108904003& rated_year ==2001; qui replace sample=1 if campus==71902002& rated_year ==2000; qui replace sample=1 if campus==95905001& rated_year ==2008; qui replace sample=1 if campus==70903002& rated_year ==2002; qui replace sample=1 if campus==227901013& rated_year ==1998; qui replace sample=1 if campus==247903001& rated_year ==2002; qui replace sample=1 if campus==140905002& rated_year ==1996; qui replace sample=1 if campus==178902001& rated_year ==2005; qui replace sample=1 if campus==49907001& rated_year ==2001; qui replace sample=1 if campus==79910001& rated_year ==2005; qui replace sample=1 if campus==205901001& rated_year ==1998; qui replace sample=1 if campus==95901001& rated_year ==1998; qui replace sample=1 if campus==20901001& rated_year ==2008; qui replace sample=1 if campus==126903001& rated_year ==2007; qui replace sample=1 if campus==107901001& rated_year ==1996; qui replace sample=1 if campus==94904001& rated_year ==2001; qui replace sample=1 if campus==71905014& rated_year ==2008; qui replace sample=1 if campus==34905002& rated_year ==2002; qui replace sample=1 if campus==98901001& rated_year ==1999; qui replace sample=1 if campus==200904001& rated_year ==2006; qui replace sample=1 if campus==139912001& rated_year ==2000; qui replace sample=1 if campus==145911002& rated_year ==1994; qui replace sample=1 if campus==38901001& rated_year ==1996; qui replace sample=1 if campus==54902001& rated_year ==2003; qui replace sample=1 if campus==57905024& rated_year ==2007; qui replace sample=1 if campus==15910002& rated_year ==1994; qui replace sample=1 if campus==130901001& rated_year ==2005; qui replace sample=1 if campus==170902001& rated_year ==2007; qui replace sample=1 if campus==169902001& rated_year ==2006; qui replace sample=1 if campus==250902001& rated_year ==2003; qui replace sample=1 if campus==46901001& rated_year ==2004; qui replace sample=1 if campus==178908001& rated_year ==2001; qui replace sample=1 if campus==170902003& rated_year ==1995; qui replace sample=1 if campus==108912001& rated_year ==2005; qui replace sample=1 if campus==170902003& rated_year ==2000; qui replace sample=1 if campus==102904002& rated_year ==1998; qui replace sample=1 if campus==170902003& rated_year ==2003; qui replace sample=1 if campus==170902003& rated_year ==2004; qui replace sample=1 if campus==227904001& rated_year ==1996; qui replace sample=1 if campus==40901001& rated_year ==2008; qui replace sample=1 if campus==170902005& rated_year ==1996; qui replace sample=1 if campus==15904002& rated_year ==2005; qui replace sample=1 if campus==107901001& rated_year ==1995; qui replace sample=1 if campus==145902001& rated_year ==2004; qui replace sample=1 if campus==7906001& rated_year ==1997; qui replace sample=1 if campus==57904001& rated_year ==1994; qui replace sample=1 if campus==101915003& rated_year ==2005; qui replace sample=1 if campus==31916004& rated_year ==2006; qui replace sample=1 if campus==170902005& rated_year ==2008; qui replace sample=1 if campus==20908001& rated_year ==1998; qui replace sample=1 if campus==185903001& rated_year ==2001; qui replace sample=1 if campus==101912024& rated_year ==1997; qui replace sample=1 if campus==94901001& rated_year ==2001; qui replace sample=1 if campus==181906001& rated_year ==1997; qui replace sample=1 if campus==243905001& rated_year ==2005; qui replace sample=1 if campus==202905002& rated_year ==2001; qui replace sample=1 if campus==57920002& rated_year ==1999; qui replace sample=1 if campus==71902009& rated_year ==1997; qui replace sample=1 if campus==84903001& rated_year ==2003; qui replace sample=1 if campus==220907001& rated_year ==2001; qui replace sample=1 if campus==57910003& rated_year ==2007; qui replace sample=1 if campus==15905003& rated_year ==1994; qui replace sample=1 if campus==101912010& rated_year ==2001; qui replace sample=1 if campus==128902001& rated_year ==2000; qui replace sample=1 if campus==70905002& rated_year ==2007; qui replace sample=1 if campus==201910002& rated_year ==1996; qui replace sample=1 if campus==19906001& rated_year ==2006; qui replace sample=1 if campus==247903001& rated_year ==2006; qui replace sample=1 if campus==189902001& rated_year ==2008; qui replace sample=1 if campus==247903001& rated_year ==2005; qui replace sample=1 if campus==49903001& rated_year ==1994; qui replace sample=1 if campus==57905006& rated_year ==1999; qui replace sample=1 if campus==35901001& rated_year ==1995; qui replace sample=1 if campus==7906001& rated_year ==1999; qui replace sample=1 if campus==108907001& rated_year ==2001; qui replace sample=1 if campus==79907004& rated_year ==2004; qui replace sample=1 if campus==57905014& rated_year ==2001; qui replace sample=1 if campus==195901001& rated_year ==1994; qui replace sample=1 if campus==92908001& rated_year ==2003; qui replace sample=1 if campus==57905017& rated_year ==2006; qui replace sample=1 if campus==247903001& rated_year ==2000; qui replace sample=1 if campus==247903001& rated_year ==1999; qui replace sample=1 if campus==184903001& rated_year ==1995; qui replace sample=1 if campus==242902001& rated_year ==2006; qui replace sample=1 if campus==71905014& rated_year ==2007; qui replace sample=1 if campus==170903002& rated_year ==1997; qui replace sample=1 if campus==170903002& rated_year ==1998; qui replace sample=1 if campus==170903002& rated_year ==1999; qui replace sample=1 if campus==7906001& rated_year ==2008; qui replace sample=1 if campus==227901009& rated_year ==2000; qui replace sample=1 if campus==57905032& rated_year ==2002; qui replace sample=1 if campus==109911001& rated_year ==2003; qui replace sample=1 if campus==3906001& rated_year ==2003; qui replace sample=1 if campus==31916005& rated_year ==1997; qui replace sample=1 if campus==170904002& rated_year ==2000; qui replace sample=1 if campus==31903001& rated_year ==1995; qui replace sample=1 if campus==172902001& rated_year ==2004; qui replace sample=1 if campus==129902001& rated_year ==2002; qui replace sample=1 if campus==57905017& rated_year ==1999; qui replace sample=1 if campus==246902001& rated_year ==1994; qui replace sample=1 if campus==246911001& rated_year ==1999; qui replace sample=1 if campus==168901001& rated_year ==2003; qui replace sample=1 if campus==133904001& rated_year ==2006; qui replace sample=1 if campus==130902001& rated_year ==1995; qui replace sample=1 if campus==15917001& rated_year ==1997; qui replace sample=1 if campus==229901001& rated_year ==1999; qui replace sample=1 if campus==47901001& rated_year ==2003; qui replace sample=1 if campus==221911001& rated_year ==2008; qui replace sample=1 if campus==31916004& rated_year ==1996; qui replace sample=1 if campus==57912004& rated_year ==1995; qui replace sample=1 if campus==15910005& rated_year ==2006; qui replace sample=1 if campus==57905022& rated_year ==1997; qui replace sample=1 if campus==221901002& rated_year ==2007; qui replace sample=1 if campus==242902001& rated_year ==2005; qui replace sample=1 if campus==117903001& rated_year ==1996; qui replace sample=1 if campus==126901001& rated_year ==2000; qui replace sample=1 if campus==15907007& rated_year ==2002; qui replace sample=1 if campus==170906001& rated_year ==2006; qui replace sample=1 if campus==170906001& rated_year ==2007; qui replace sample=1 if campus==101920003& rated_year ==2008; qui replace sample=1 if campus==100904001& rated_year ==1996; qui replace sample=1 if campus==101912014& rated_year ==2002; qui replace sample=1 if campus==57912004& rated_year ==1997; qui replace sample=1 if campus==84910001& rated_year ==2003; qui replace sample=1 if campus==220905011& rated_year ==2006; qui replace sample=1 if campus==20908001& rated_year ==2001; qui replace sample=1 if campus==53001001& rated_year ==1994; qui replace sample=1 if campus==92902002& rated_year ==1997; qui replace sample=1 if campus==57905001& rated_year ==1996; qui replace sample=1 if campus==207901001& rated_year ==1994; qui replace sample=1 if campus==70910001& rated_year ==2008; qui replace sample=1 if campus==170907001& rated_year ==1999; qui replace sample=1 if campus==170907001& rated_year ==2000; qui replace sample=1 if campus==14910001& rated_year ==2002; qui replace sample=1 if campus==170907001& rated_year ==2004; qui replace sample=1 if campus==14906002& rated_year ==2006; qui replace sample=1 if campus==108910001& rated_year ==2005; qui replace sample=1 if campus==107901001& rated_year ==2008; qui replace sample=1 if campus==15912001& rated_year ==2002; qui replace sample=1 if campus==57905037& rated_year ==1995; qui replace sample=1 if campus==212903001& rated_year ==2005; qui replace sample=1 if campus==170908001& rated_year ==1995; qui replace sample=1 if campus==101912009& rated_year ==2008; qui replace sample=1 if campus==107905001& rated_year ==2007; qui replace sample=1 if campus==170908001& rated_year ==2005; qui replace sample=1 if campus==240903002& rated_year ==2002; qui replace sample=1 if campus==15917001& rated_year ==2008; qui replace sample=1 if campus==70903002& rated_year ==2004; qui replace sample=1 if campus==95905001& rated_year ==1995; qui replace sample=1 if campus==79906001& rated_year ==2007; qui replace sample=1 if campus==57912003& rated_year ==2003; qui replace sample=1 if campus==254901001& rated_year ==2003; qui replace sample=1 if campus==220918001& rated_year ==2007; qui replace sample=1 if campus==109905001& rated_year ==2000; qui replace sample=1 if campus==26901001& rated_year ==2008; qui replace sample=1 if campus==31901001& rated_year ==2006; qui replace sample=1 if campus==20904001& rated_year ==1995; qui replace sample=1 if campus==93901001& rated_year ==1994; qui replace sample=1 if campus==84906001& rated_year ==1996; qui replace sample=1 if campus==129905001& rated_year ==1995; qui replace sample=1 if campus==57905022& rated_year ==2008; qui replace sample=1 if campus==171901001& rated_year ==1995; qui replace sample=1 if campus==14906001& rated_year ==2005; qui replace sample=1 if campus==209901001& rated_year ==1997; qui replace sample=1 if campus==129901001& rated_year ==2004; qui replace sample=1 if campus==18901001& rated_year ==2006; qui replace sample=1 if campus==46902002& rated_year ==2007; qui replace sample=1 if campus==31906001& rated_year ==2002; qui replace sample=1 if campus==246909003& rated_year ==2008; qui replace sample=1 if campus==171901001& rated_year ==2007; qui replace sample=1 if campus==171901001& rated_year ==2008; qui replace sample=1 if campus==101914002& rated_year ==1998; qui replace sample=1 if campus==101912008& rated_year ==1999; qui replace sample=1 if campus==101907002& rated_year ==2006; qui replace sample=1 if campus==57905014& rated_year ==1996; qui replace sample=1 if campus==57914004& rated_year ==2007; qui replace sample=1 if campus==238902001& rated_year ==2001; qui replace sample=1 if campus==57909005& rated_year ==1994; qui replace sample=1 if campus==43903001& rated_year ==2004; qui replace sample=1 if campus==57905014& rated_year ==2005; qui replace sample=1 if campus==57909005& rated_year ==1998; qui replace sample=1 if campus==15915005& rated_year ==1997; qui replace sample=1 if campus==59901001& rated_year ==1998; qui replace sample=1 if campus==191901001& rated_year ==1995; qui replace sample=1 if campus==251902001& rated_year ==1997; qui replace sample=1 if campus==161909001& rated_year ==2004; qui replace sample=1 if campus==61908001& rated_year ==1995; qui replace sample=1 if campus==20901001& rated_year ==2006; qui replace sample=1 if campus==172902001& rated_year ==2001; qui replace sample=1 if campus==84902001& rated_year ==2008; qui replace sample=1 if campus==11901001& rated_year ==2007; qui replace sample=1 if campus==178909001& rated_year ==2007; qui replace sample=1 if campus==212905003& rated_year ==2008; qui replace sample=1 if campus==83901001& rated_year ==1995; qui replace sample=1 if campus==57905033& rated_year ==1997; qui replace sample=1 if campus==71902009& rated_year ==1999; qui replace sample=1 if campus==125905001& rated_year ==2002; qui replace sample=1 if campus==46902002& rated_year ==1995; qui replace sample=1 if campus==15907008& rated_year ==1997; qui replace sample=1 if campus==190903001& rated_year ==2001; qui replace sample=1 if campus==136901001& rated_year ==2004; qui replace sample=1 if campus==164901001& rated_year ==1995; qui replace sample=1 if campus==158901001& rated_year ==2007; qui replace sample=1 if campus==57905039& rated_year ==2007; qui replace sample=1 if campus==40901001& rated_year ==1994; qui replace sample=1 if campus==123910001& rated_year ==1999; qui replace sample=1 if campus==101917004& rated_year ==1999; qui replace sample=1 if campus==70912002& rated_year ==2006; qui replace sample=1 if campus==174902001& rated_year ==1995; qui replace sample=1 if campus==220905015& rated_year ==2007; qui replace sample=1 if campus==220905014& rated_year ==2007; qui replace sample=1 if campus==174902001& rated_year ==2002; qui replace sample=1 if campus==174902001& rated_year ==2003; qui replace sample=1 if campus==37901001& rated_year ==2003; qui replace sample=1 if campus==174903001& rated_year ==1995; qui replace sample=1 if campus==26903002& rated_year ==2008; qui replace sample=1 if campus==108913001& rated_year ==1999; qui replace sample=1 if campus==201910002& rated_year ==1999; qui replace sample=1 if campus==150901001& rated_year ==1996; qui replace sample=1 if campus==174903001& rated_year ==2003; qui replace sample=1 if campus==161922001& rated_year ==1997; qui replace sample=1 if campus==94904001& rated_year ==1996; qui replace sample=1 if campus==126908001& rated_year ==2004; qui replace sample=1 if campus==15907002& rated_year ==2004; qui replace sample=1 if campus==174904002& rated_year ==1995; qui replace sample=1 if campus==180902001& rated_year ==1998; qui replace sample=1 if campus==98904001& rated_year ==2007; qui replace sample=1 if campus==174904002& rated_year ==1999; qui replace sample=1 if campus==15915002& rated_year ==2003; qui replace sample=1 if campus==161914003& rated_year ==1998; qui replace sample=1 if campus==174904002& rated_year ==2004; qui replace sample=1 if campus==174904002& rated_year ==2005; qui replace sample=1 if campus==123910008& rated_year ==2007; qui replace sample=1 if campus==71902010& rated_year ==1998; qui replace sample=1 if campus==161919001& rated_year ==1995; qui replace sample=1 if campus==84911001& rated_year ==2002; qui replace sample=1 if campus==240901002& rated_year ==2004; qui replace sample=1 if campus==82902001& rated_year ==2005; qui replace sample=1 if campus==15915001& rated_year ==2007; qui replace sample=1 if campus==72903001& rated_year ==1995; qui replace sample=1 if campus==62901001& rated_year ==1999; qui replace sample=1 if campus==57905033& rated_year ==1994; qui replace sample=1 if campus==114901001& rated_year ==2003; qui replace sample=1 if campus==185903001& rated_year ==1994; qui replace sample=1 if campus==174906001& rated_year ==2003; qui replace sample=1 if campus==247903001& rated_year ==1998; qui replace sample=1 if campus==177902001& rated_year ==2004; qui replace sample=1 if campus==200901001& rated_year ==2004; qui replace sample=1 if campus==7905001& rated_year ==1995; qui replace sample=1 if campus==71903001& rated_year ==1997; qui replace sample=1 if campus==246911001& rated_year ==2007; qui replace sample=1 if campus==113906001& rated_year ==1996; qui replace sample=1 if campus==226903002& rated_year ==2008; qui replace sample=1 if campus==112908001& rated_year ==2005; qui replace sample=1 if campus==31916001& rated_year ==1997; qui replace sample=1 if campus==43902001& rated_year ==2001; qui replace sample=1 if campus==91905001& rated_year ==1999; qui replace sample=1 if campus==57903001& rated_year ==2005; qui replace sample=1 if campus==220915001& rated_year ==1999; qui replace sample=1 if campus==108916001& rated_year ==1994; qui replace sample=1 if campus==247901001& rated_year ==2003; qui replace sample=1 if campus==252903001& rated_year ==2001; qui replace sample=1 if campus==140905002& rated_year ==2000; qui replace sample=1 if campus==250903001& rated_year ==2002; qui replace sample=1 if campus==188901002& rated_year ==1997; qui replace sample=1 if campus==154901001& rated_year ==2001; qui replace sample=1 if campus==250907001& rated_year ==2001; qui replace sample=1 if campus==57905001& rated_year ==1994; qui replace sample=1 if campus==235902001& rated_year ==1999; qui replace sample=1 if campus==15916001& rated_year ==2006; qui replace sample=1 if campus==250905001& rated_year ==2007; qui replace sample=1 if campus==14909002& rated_year ==2007; qui replace sample=1 if campus==15905002& rated_year ==2002; qui replace sample=1 if campus==175903001& rated_year ==1997; qui replace sample=1 if campus==175903001& rated_year ==2001; qui replace sample=1 if campus==100903002& rated_year ==1994; qui replace sample=1 if campus==175903001& rated_year ==2003; qui replace sample=1 if campus==175903001& rated_year ==2004; qui replace sample=1 if campus==175903001& rated_year ==2008; qui replace sample=1 if campus==101912011& rated_year ==2003; qui replace sample=1 if campus==93904002& rated_year ==1997; qui replace sample=1 if campus==235902002& rated_year ==2000; qui replace sample=1 if campus==175904001& rated_year ==2002; qui replace sample=1 if campus==101912012& rated_year ==2002; qui replace sample=1 if campus==252903001& rated_year ==2000; qui replace sample=1 if campus==175904001& rated_year ==2008; qui replace sample=1 if campus==247901001& rated_year ==1998; qui replace sample=1 if campus==36901001& rated_year ==2001; qui replace sample=1 if campus==11901001& rated_year ==1996; qui replace sample=1 if campus==127903001& rated_year ==2003; qui replace sample=1 if campus==101912009& rated_year ==2004; qui replace sample=1 if campus==175907001& rated_year ==1997; qui replace sample=1 if campus==184909001& rated_year ==2003; qui replace sample=1 if campus==175907001& rated_year ==2005; qui replace sample=1 if campus==175907001& rated_year ==2007; qui replace sample=1 if campus==107902001& rated_year ==1999; qui replace sample=1 if campus==71902004& rated_year ==2006; qui replace sample=1 if campus==220908001& rated_year ==2000; qui replace sample=1 if campus==101910003& rated_year ==2007; qui replace sample=1 if campus==134901001& rated_year ==1995; qui replace sample=1 if campus==71906001& rated_year ==2001; qui replace sample=1 if campus==198905002& rated_year ==2004; qui replace sample=1 if campus==101908001& rated_year ==2000; qui replace sample=1 if campus==108906001& rated_year ==2001; qui replace sample=1 if campus==199902002& rated_year ==2007; qui replace sample=1 if campus==116908001& rated_year ==1999; qui replace sample=1 if campus==14908001& rated_year ==2001; qui replace sample=1 if campus==95901001& rated_year ==1999; qui replace sample=1 if campus==79907006& rated_year ==2003; qui replace sample=1 if campus==101902005& rated_year ==2004; qui replace sample=1 if campus==146907001& rated_year ==2008; qui replace sample=1 if campus==176901001& rated_year ==1995; qui replace sample=1 if campus==176901001& rated_year ==1997; qui replace sample=1 if campus==126907001& rated_year ==2000; qui replace sample=1 if campus==176901001& rated_year ==2002; qui replace sample=1 if campus==108912001& rated_year ==1998; qui replace sample=1 if campus==22901001& rated_year ==1998; qui replace sample=1 if campus==250903001& rated_year ==2000; qui replace sample=1 if campus==176902002& rated_year ==1995; qui replace sample=1 if campus==176902002& rated_year ==1997; qui replace sample=1 if campus==176902002& rated_year ==2000; qui replace sample=1 if campus==176902002& rated_year ==2002; qui replace sample=1 if campus==79907002& rated_year ==2003; qui replace sample=1 if campus==43901001& rated_year ==2007; qui replace sample=1 if campus==176902002& rated_year ==2007; qui replace sample=1 if campus==121904001& rated_year ==2002; qui replace sample=1 if campus==19903001& rated_year ==1998; qui replace sample=1 if campus==101912024& rated_year ==1999; qui replace sample=1 if campus==176903001& rated_year ==1995; qui replace sample=1 if campus==8901001& rated_year ==1998; qui replace sample=1 if campus==176903001& rated_year ==2000; qui replace sample=1 if campus==176903001& rated_year ==2005; qui replace sample=1 if campus==176903001& rated_year ==2007; qui replace sample=1 if campus==179901001& rated_year ==1995; qui replace sample=1 if campus==51901001& rated_year ==2001; qui replace sample=1 if campus==43911001& rated_year ==1994; qui replace sample=1 if campus==177901001& rated_year ==1999; qui replace sample=1 if campus==43904001& rated_year ==2002; qui replace sample=1 if campus==177901001& rated_year ==2001; qui replace sample=1 if campus==177901001& rated_year ==2002; qui replace sample=1 if campus==220905006& rated_year ==1994; qui replace sample=1 if campus==177901001& rated_year ==2006; qui replace sample=1 if campus==92902002& rated_year ==2006; qui replace sample=1 if campus==127903001& rated_year ==1994; qui replace sample=1 if campus==240903001& rated_year ==1995; qui replace sample=1 if campus==57909005& rated_year ==2006; qui replace sample=1 if campus==211902001& rated_year ==1996; qui replace sample=1 if campus==235902002& rated_year ==1996; qui replace sample=1 if campus==177902001& rated_year ==1994; qui replace sample=1 if campus==140905002& rated_year ==2007; qui replace sample=1 if campus==177902001& rated_year ==1996; qui replace sample=1 if campus==36901001& rated_year ==1996; qui replace sample=1 if campus==25902001& rated_year ==1995; qui replace sample=1 if campus==177902001& rated_year ==2002; qui replace sample=1 if campus==177902001& rated_year ==2006; qui replace sample=1 if campus==170904002& rated_year ==1997; qui replace sample=1 if campus==228903001& rated_year ==1994; qui replace sample=1 if campus==106901001& rated_year ==1996; qui replace sample=1 if campus==83901001& rated_year ==1997; qui replace sample=1 if campus==108909001& rated_year ==1996; qui replace sample=1 if campus==253901001& rated_year ==2002; qui replace sample=1 if campus==220905001& rated_year ==2003; qui replace sample=1 if campus==35901001& rated_year ==2000; qui replace sample=1 if campus==57905032& rated_year ==2003; qui replace sample=1 if campus==137901001& rated_year ==2003; qui replace sample=1 if campus==175904001& rated_year ==2007; qui replace sample=1 if campus==37901001& rated_year ==2005; qui replace sample=1 if campus==71905007& rated_year ==2006; qui replace sample=1 if campus==80901001& rated_year ==2006; qui replace sample=1 if campus==241906001& rated_year ==1999; qui replace sample=1 if campus==139905001& rated_year ==2004; qui replace sample=1 if campus==14910001& rated_year ==2000; qui replace sample=1 if campus==39903001& rated_year ==2006; qui replace sample=1 if campus==226903002& rated_year ==1996; qui replace sample=1 if campus==250904001& rated_year ==2005; qui replace sample=1 if campus==15910005& rated_year ==1999; qui replace sample=1 if campus==71905002& rated_year ==1998; qui replace sample=1 if campus==25901001& rated_year ==2000; qui replace sample=1 if campus==70908001& rated_year ==2006; qui replace sample=1 if campus==31916004& rated_year ==1995; qui replace sample=1 if campus==174903001& rated_year ==1999; qui replace sample=1 if campus==239903001& rated_year ==1997; qui replace sample=1 if campus==108914001& rated_year ==2002; qui replace sample=1 if campus==157901001& rated_year ==2000; qui replace sample=1 if campus==145906001& rated_year ==1995; qui replace sample=1 if campus==21902001& rated_year ==1998; qui replace sample=1 if campus==169901001& rated_year ==2000; qui replace sample=1 if campus==54902001& rated_year ==2007; qui replace sample=1 if campus==71905003& rated_year ==2001; qui replace sample=1 if campus==220905005& rated_year ==1995; qui replace sample=1 if campus==101912009& rated_year ==2005; qui replace sample=1 if campus==252903001& rated_year ==2008; qui replace sample=1 if campus==119902001& rated_year ==2007; qui replace sample=1 if campus==71905002& rated_year ==2008; qui replace sample=1 if campus==70907001& rated_year ==1999; qui replace sample=1 if campus==102906001& rated_year ==2002; qui replace sample=1 if campus==176902002& rated_year ==2004; qui replace sample=1 if campus==250903001& rated_year ==2006; qui replace sample=1 if campus==156902001& rated_year ==1997; qui replace sample=1 if campus==69902001& rated_year ==2004; qui replace sample=1 if campus==84910002& rated_year ==2003; qui replace sample=1 if campus==101912009& rated_year ==1997; qui replace sample=1 if campus==101920003& rated_year ==1996; qui replace sample=1 if campus==71902004& rated_year ==1998; qui replace sample=1 if campus==91914001& rated_year ==1998; qui replace sample=1 if campus==91902001& rated_year ==2003; qui replace sample=1 if campus==155901002& rated_year ==1999; qui replace sample=1 if campus==34901001& rated_year ==1997; qui replace sample=1 if campus==101919002& rated_year ==2004; qui replace sample=1 if campus==45903001& rated_year ==2000; qui replace sample=1 if campus==31914001& rated_year ==1998; qui replace sample=1 if campus==152906001& rated_year ==1997; qui replace sample=1 if campus==91903001& rated_year ==2001; qui replace sample=1 if campus==201908001& rated_year ==1994; qui replace sample=1 if campus==50910001& rated_year ==1996; qui replace sample=1 if campus==73905001& rated_year ==2006; qui replace sample=1 if campus==240901003& rated_year ==1998; qui replace sample=1 if campus==161921001& rated_year ==1999; qui replace sample=1 if campus==157901001& rated_year ==2004; qui replace sample=1 if campus==227907001& rated_year ==1997; qui replace sample=1 if campus==107904001& rated_year ==2002; qui replace sample=1 if campus==234906001& rated_year ==1995; qui replace sample=1 if campus==124901001& rated_year ==1999; qui replace sample=1 if campus==220905004& rated_year ==2008; qui replace sample=1 if campus==140905002& rated_year ==2001; qui replace sample=1 if campus==108906002& rated_year ==1999; qui replace sample=1 if campus==170902005& rated_year ==2004; qui replace sample=1 if campus==19906001& rated_year ==2008; qui replace sample=1 if campus==223901001& rated_year ==2006; qui replace sample=1 if campus==101916001& rated_year ==2005; qui replace sample=1 if campus==26902001& rated_year ==1996; qui replace sample=1 if campus==33902001& rated_year ==1995; qui replace sample=1 if campus==164901001& rated_year ==1997; qui replace sample=1 if campus==84908001& rated_year ==1998; qui replace sample=1 if campus==212903001& rated_year ==2004; qui replace sample=1 if campus==19907002& rated_year ==1995; qui replace sample=1 if campus==246908001& rated_year ==2006; qui replace sample=1 if campus==185901001& rated_year ==2006; qui replace sample=1 if campus==248901001& rated_year ==1998; qui replace sample=1 if campus==82903001& rated_year ==1994; qui replace sample=1 if campus==177901001& rated_year ==2003; qui replace sample=1 if campus==101924001& rated_year ==2007; qui replace sample=1 if campus==101912006& rated_year ==2006; qui replace sample=1 if campus==31916003& rated_year ==1996; qui replace sample=1 if campus==123907001& rated_year ==1999; qui replace sample=1 if campus==153904001& rated_year ==2005; qui replace sample=1 if campus==101903002& rated_year ==2005; qui replace sample=1 if campus==153904001& rated_year ==2002; qui replace sample=1 if campus==153904001& rated_year ==1997; qui replace sample=1 if campus==153904001& rated_year ==1996; qui replace sample=1 if campus==101912011& rated_year ==1994; qui replace sample=1 if campus==247901001& rated_year ==2005; qui replace sample=1 if campus==106901001& rated_year ==2003; qui replace sample=1 if campus==153903001& rated_year ==2006; qui replace sample=1 if campus==220905015& rated_year ==1996; qui replace sample=1 if campus==249901001& rated_year ==2001; qui replace sample=1 if campus==188901002& rated_year ==2008; qui replace sample=1 if campus==61906001& rated_year ==2003; qui replace sample=1 if campus==153903001& rated_year ==1999; qui replace sample=1 if campus==15907001& rated_year ==1998; qui replace sample=1 if campus==66902001& rated_year ==2000; qui replace sample=1 if campus==178904002& rated_year ==1994; qui replace sample=1 if campus==101912019& rated_year ==1999; qui replace sample=1 if campus==57905001& rated_year ==2001; qui replace sample=1 if campus==194904002& rated_year ==1998; qui replace sample=1 if campus==233901001& rated_year ==2003; qui replace sample=1 if campus==112908001& rated_year ==1995; qui replace sample=1 if campus==204904001& rated_year ==2008; qui replace sample=1 if campus==152910001& rated_year ==2002; qui replace sample=1 if campus==152910001& rated_year ==2001; qui replace sample=1 if campus==152910001& rated_year ==2000; qui replace sample=1 if campus==214903001& rated_year ==2006; qui replace sample=1 if campus==47902001& rated_year ==1999; qui replace sample=1 if campus==212901001& rated_year ==1998; qui replace sample=1 if campus==101913001& rated_year ==1999; qui replace sample=1 if campus==198903001& rated_year ==2004; qui replace sample=1 if campus==57903002& rated_year ==2003; qui replace sample=1 if campus==101906001& rated_year ==2007; qui replace sample=1 if campus==220920001& rated_year ==2004; qui replace sample=1 if campus==50902001& rated_year ==2006; qui replace sample=1 if campus==250906001& rated_year ==1997; qui replace sample=1 if campus==68901002& rated_year ==2002; qui replace sample=1 if campus==212904002& rated_year ==2001; qui replace sample=1 if campus==152908001& rated_year ==2002; qui replace sample=1 if campus==152908001& rated_year ==2001; qui replace sample=1 if campus==55901001& rated_year ==2004; qui replace sample=1 if campus==31901003& rated_year ==2005; qui replace sample=1 if campus==70908001& rated_year ==2004; qui replace sample=1 if campus==174906001& rated_year ==2007; qui replace sample=1 if campus==152908001& rated_year ==1995; qui replace sample=1 if campus==212906001& rated_year ==1998; qui replace sample=1 if campus==39902001& rated_year ==1999; qui replace sample=1 if campus==116902001& rated_year ==2004; qui replace sample=1 if campus==15916001& rated_year ==2004; qui replace sample=1 if campus==43904001& rated_year ==2008; qui replace sample=1 if campus==57914003& rated_year ==2007; qui replace sample=1 if campus==212901001& rated_year ==2000; qui replace sample=1 if campus==15907004& rated_year ==2000; qui replace sample=1 if campus==126907001& rated_year ==1996; qui replace sample=1 if campus==152907001& rated_year ==2004; qui replace sample=1 if campus==146902002& rated_year ==1996; qui replace sample=1 if campus==26901001& rated_year ==1994; qui replace sample=1 if campus==152907001& rated_year ==1996; qui replace sample=1 if campus==226903002& rated_year ==1997; qui replace sample=1 if campus==31906001& rated_year ==1997; qui replace sample=1 if campus==108912001& rated_year ==2000; qui replace sample=1 if campus==14902001& rated_year ==2003; qui replace sample=1 if campus==105902001& rated_year ==2008; qui replace sample=1 if campus==97902001& rated_year ==2001; qui replace sample=1 if campus==183902001& rated_year ==2001; qui replace sample=1 if campus==152906001& rated_year ==1998; qui replace sample=1 if campus==15915005& rated_year ==1998; qui replace sample=1 if campus==66902001& rated_year ==1999; qui replace sample=1 if campus==139911002& rated_year ==1996; qui replace sample=1 if campus==101912002& rated_year ==2005; qui replace sample=1 if campus==252901001& rated_year ==1995; qui replace sample=1 if campus==126908001& rated_year ==2001; qui replace sample=1 if campus==70903002& rated_year ==2003; qui replace sample=1 if campus==152909001& rated_year ==1998; qui replace sample=1 if campus==130902001& rated_year ==1994; qui replace sample=1 if campus==181905001& rated_year ==2000; qui replace sample=1 if campus==210905001& rated_year ==1998; qui replace sample=1 if campus==91903001& rated_year ==2004; qui replace sample=1 if campus==42901001& rated_year ==2002; qui replace sample=1 if campus==57904001& rated_year ==2006; qui replace sample=1 if campus==152903001& rated_year ==1995; qui replace sample=1 if campus==79901002& rated_year ==2000; qui replace sample=1 if campus==152902001& rated_year ==2007; qui replace sample=1 if campus==101924001& rated_year ==1996; qui replace sample=1 if campus==101917003& rated_year ==1995; qui replace sample=1 if campus==15907003& rated_year ==1999; qui replace sample=1 if campus==152902001& rated_year ==2001; qui replace sample=1 if campus==152908001& rated_year ==2004; qui replace sample=1 if campus==129904001& rated_year ==2000; qui replace sample=1 if campus==101912026& rated_year ==1995; qui replace sample=1 if campus==220918001& rated_year ==1995; qui replace sample=1 if campus==174903001& rated_year ==1998; qui replace sample=1 if campus==31901007& rated_year ==2002; qui replace sample=1 if campus==229904001& rated_year ==2003; qui replace sample=1 if campus==188901001& rated_year ==2001; qui replace sample=1 if campus==93904002& rated_year ==2005; qui replace sample=1 if campus==101912016& rated_year ==2000; qui replace sample=1 if campus==203901002& rated_year ==1994; qui replace sample=1 if campus==93901001& rated_year ==2001; qui replace sample=1 if campus==183901001& rated_year ==1997; qui replace sample=1 if campus==220905006& rated_year ==2006; qui replace sample=1 if campus==71902001& rated_year ==1997; qui replace sample=1 if campus==11902001& rated_year ==2006; qui replace sample=1 if campus==57905006& rated_year ==2000; qui replace sample=1 if campus==101912008& rated_year ==1998; qui replace sample=1 if campus==51901001& rated_year ==1999; qui replace sample=1 if campus==108904003& rated_year ==2002; qui replace sample=1 if campus==57905036& rated_year ==1997; qui replace sample=1 if campus==30903001& rated_year ==2000; qui replace sample=1 if campus==108908001& rated_year ==1994; qui replace sample=1 if campus==232902001& rated_year ==2006; qui replace sample=1 if campus==240901003& rated_year ==2008; qui replace sample=1 if campus==91901001& rated_year ==2000; qui replace sample=1 if campus==152902001& rated_year ==2000; qui replace sample=1 if campus==101920006& rated_year ==2002; qui replace sample=1 if campus==220912001& rated_year ==1999; qui replace sample=1 if campus==62901001& rated_year ==2000; qui replace sample=1 if campus==107902001& rated_year ==2004; qui replace sample=1 if campus==108904003& rated_year ==2004; qui replace sample=1 if campus==123907003& rated_year ==1997; qui replace sample=1 if campus==10902001& rated_year ==1994; qui replace sample=1 if campus==34905002& rated_year ==2004; qui replace sample=1 if campus==14901001& rated_year ==2004; qui replace sample=1 if campus==57905007& rated_year ==1996; qui replace sample=1 if campus==108904001& rated_year ==1998; qui replace sample=1 if campus==101914002& rated_year ==2003; qui replace sample=1 if campus==101919001& rated_year ==2005; qui replace sample=1 if campus==35901001& rated_year ==2006; qui replace sample=1 if campus==205906001& rated_year ==2003; qui replace sample=1 if campus==249905001& rated_year ==2008; qui replace sample=1 if campus==19903001& rated_year ==2003; qui replace sample=1 if campus==101911003& rated_year ==2004; qui replace sample=1 if campus==237902001& rated_year ==2003; qui replace sample=1 if campus==90904001& rated_year ==2006; qui replace sample=1 if campus==178913001& rated_year ==2005; qui replace sample=1 if campus==234906001& rated_year ==2007; qui replace sample=1 if campus==178904004& rated_year ==2003; qui replace sample=1 if campus==31905001& rated_year ==1996; qui replace sample=1 if campus==61905001& rated_year ==1999; qui replace sample=1 if campus==175904001& rated_year ==1995; qui replace sample=1 if campus==108903001& rated_year ==2007; qui replace sample=1 if campus==31912001& rated_year ==1999; qui replace sample=1 if campus==144902001& rated_year ==2000; qui replace sample=1 if campus==161909001& rated_year ==2002; qui replace sample=1 if campus==127901001& rated_year ==1997; qui replace sample=1 if campus==220902001& rated_year ==2000; qui replace sample=1 if campus==227901006& rated_year ==1999; qui replace sample=1 if campus==15907002& rated_year ==2005; qui replace sample=1 if campus==152903001& rated_year ==2004; qui replace sample=1 if campus==161907001& rated_year ==1999; qui replace sample=1 if campus==205905001& rated_year ==2005; qui replace sample=1 if campus==92908001& rated_year ==1995; qui replace sample=1 if campus==129906002& rated_year ==2007; qui replace sample=1 if campus==14905001& rated_year ==1999; qui replace sample=1 if campus==68901045& rated_year ==1998; qui replace sample=1 if campus==93904002& rated_year ==2004; qui replace sample=1 if campus==161914003& rated_year ==2001; qui replace sample=1 if campus==119902001& rated_year ==1997; qui replace sample=1 if campus==220905002& rated_year ==2007; qui replace sample=1 if campus==84903001& rated_year ==1998; qui replace sample=1 if campus==10901001& rated_year ==2003; qui replace sample=1 if campus==57905023& rated_year ==1999; qui replace sample=1 if campus==108902001& rated_year ==1994; qui replace sample=1 if campus==91918001& rated_year ==1996; qui replace sample=1 if campus==57912002& rated_year ==1995; qui replace sample=1 if campus==15904002& rated_year ==2006; qui replace sample=1 if campus==62904001& rated_year ==1996; qui replace sample=1 if campus==177901001& rated_year ==1997; qui replace sample=1 if campus==8902001& rated_year ==1999; qui replace sample=1 if campus==230903001& rated_year ==2003; qui replace sample=1 if campus==15912001& rated_year ==2000; qui replace sample=1 if campus==212905001& rated_year ==2002; qui replace sample=1 if campus==112908001& rated_year ==1997; qui replace sample=1 if campus==227901013& rated_year ==1994; qui replace sample=1 if campus==20901001& rated_year ==2004; qui replace sample=1 if campus==31903001& rated_year ==2000; qui replace sample=1 if campus==14909002& rated_year ==1996; qui replace sample=1 if campus==43905001& rated_year ==2008; qui replace sample=1 if campus==71905001& rated_year ==1996; qui replace sample=1 if campus==43914001& rated_year ==1996; qui replace sample=1 if campus==169901001& rated_year ==2002; qui replace sample=1 if campus==246908001& rated_year ==2003; qui replace sample=1 if campus==240901001& rated_year ==2005; qui replace sample=1 if campus==229903001& rated_year ==1995; qui replace sample=1 if campus==31903001& rated_year ==2002; qui replace sample=1 if campus==101909002& rated_year ==2000; qui replace sample=1 if campus==94904001& rated_year ==2005; qui replace sample=1 if campus==31901001& rated_year ==2004; qui replace sample=1 if campus==150901001& rated_year ==2002; qui replace sample=1 if campus==240901003& rated_year ==1994; qui replace sample=1 if campus==188901004& rated_year ==2001; qui replace sample=1 if campus==150901001& rated_year ==1998; qui replace sample=1 if campus==238902001& rated_year ==2008; qui replace sample=1 if campus==231901001& rated_year ==1996; qui replace sample=1 if campus==126911001& rated_year ==2001; qui replace sample=1 if campus==101903001& rated_year ==1994; qui replace sample=1 if campus==55901001& rated_year ==2000; qui replace sample=1 if campus==57914003& rated_year ==1998; qui replace sample=1 if campus==84903001& rated_year ==1997; qui replace sample=1 if campus==92908001& rated_year ==1999; qui replace sample=1 if campus==161919001& rated_year ==2006; qui replace sample=1 if campus==49901001& rated_year ==2003; qui replace sample=1 if campus==149901001& rated_year ==2007; qui replace sample=1 if campus==220901004& rated_year ==2003; qui replace sample=1 if campus==149901001& rated_year ==2005; qui replace sample=1 if campus==13901001& rated_year ==2006; qui replace sample=1 if campus==101919001& rated_year ==2001; qui replace sample=1 if campus==166904001& rated_year ==1995; qui replace sample=1 if campus==237904002& rated_year ==2001; qui replace sample=1 if campus==170902003& rated_year ==1999; qui replace sample=1 if campus==84910003& rated_year ==1994; qui replace sample=1 if campus==106901001& rated_year ==2002; qui replace sample=1 if campus==16901001& rated_year ==2007; qui replace sample=1 if campus==101913001& rated_year ==1997; qui replace sample=1 if campus==79901002& rated_year ==1998; qui replace sample=1 if campus==5902001& rated_year ==1996; qui replace sample=1 if campus==101911002& rated_year ==2008; qui replace sample=1 if campus==111901001& rated_year ==1995; qui replace sample=1 if campus==101912011& rated_year ==1998; qui replace sample=1 if campus==221911001& rated_year ==2007; qui replace sample=1 if campus==249901001& rated_year ==1995; qui replace sample=1 if campus==62901001& rated_year ==1995; qui replace sample=1 if campus==31914001& rated_year ==1996; qui replace sample=1 if campus==15906001& rated_year ==2002; qui replace sample=1 if campus==165901042& rated_year ==2000; qui replace sample=1 if campus==20904001& rated_year ==1996; qui replace sample=1 if campus==101912004& rated_year ==1995; qui replace sample=1 if campus==14907001& rated_year ==2000; qui replace sample=1 if campus==70908001& rated_year ==1996; qui replace sample=1 if campus==94901001& rated_year ==2002; qui replace sample=1 if campus==220902001& rated_year ==1995; qui replace sample=1 if campus==161903001& rated_year ==1994; qui replace sample=1 if campus==201914001& rated_year ==2008; qui replace sample=1 if campus==205904001& rated_year ==1996; qui replace sample=1 if campus==101920006& rated_year ==2008; qui replace sample=1 if campus==238902001& rated_year ==2007; qui replace sample=1 if campus==101912012& rated_year ==2004; qui replace sample=1 if campus==228903001& rated_year ==1998; qui replace sample=1 if campus==220901004& rated_year ==2005; qui replace sample=1 if campus==15910005& rated_year ==1998; qui replace sample=1 if campus==152907001& rated_year ==1997; qui replace sample=1 if campus==3906001& rated_year ==1995; qui replace sample=1 if campus==184904001& rated_year ==2006; qui replace sample=1 if campus==74903001& rated_year ==2008; qui replace sample=1 if campus==145906001& rated_year ==2005; qui replace sample=1 if campus==190903001& rated_year ==1996; qui replace sample=1 if campus==59901001& rated_year ==2004; qui replace sample=1 if campus==178904001& rated_year ==2000; qui replace sample=1 if campus==249905001& rated_year ==1994; qui replace sample=1 if campus==15907007& rated_year ==1998; qui replace sample=1 if campus==220901004& rated_year ==2006; qui replace sample=1 if campus==108904001& rated_year ==2003; qui replace sample=1 if campus==79907004& rated_year ==2007; qui replace sample=1 if campus==126911001& rated_year ==1995; qui replace sample=1 if campus==249905001& rated_year ==1997; qui replace sample=1 if campus==227910001& rated_year ==2001; qui replace sample=1 if campus==15907182& rated_year ==1998; qui replace sample=1 if campus==129910001& rated_year ==2004; qui replace sample=1 if campus==29901001& rated_year ==1994; qui replace sample=1 if campus==137901001& rated_year ==1995; qui replace sample=1 if campus==83901001& rated_year ==2005; qui replace sample=1 if campus==8901001& rated_year ==2008; qui replace sample=1 if campus==146907001& rated_year ==2006; qui replace sample=1 if campus==249905001& rated_year ==2000; qui replace sample=1 if campus==146907001& rated_year ==2005; qui replace sample=1 if campus==146907001& rated_year ==2000; qui replace sample=1 if campus==61912001& rated_year ==1998; qui replace sample=1 if campus==146907001& rated_year ==1998; qui replace sample=1 if campus==221901001& rated_year ==2004; qui replace sample=1 if campus==91902001& rated_year ==1996; qui replace sample=1 if campus==161908002& rated_year ==2000; qui replace sample=1 if campus==71901001& rated_year ==1998; qui replace sample=1 if campus==189901001& rated_year ==2000; qui replace sample=1 if campus==200902001& rated_year ==2006; qui replace sample=1 if campus==101913002& rated_year ==2007; qui replace sample=1 if campus==31901001& rated_year ==1998; qui replace sample=1 if campus==19902002& rated_year ==1998; qui replace sample=1 if campus==61905001& rated_year ==2002; qui replace sample=1 if campus==108913001& rated_year ==2006; qui replace sample=1 if campus==213901001& rated_year ==1999; qui replace sample=1 if campus==212909001& rated_year ==2006; qui replace sample=1 if campus==71902001& rated_year ==2003; qui replace sample=1 if campus==146906001& rated_year ==2007; qui replace sample=1 if campus==116916001& rated_year ==1995; qui replace sample=1 if campus==122901002& rated_year ==1994; qui replace sample=1 if campus==149901001& rated_year ==1998; qui replace sample=1 if campus==203901002& rated_year ==1999; qui replace sample=1 if campus==56901001& rated_year ==2001; qui replace sample=1 if campus==146906001& rated_year ==1996; qui replace sample=1 if campus==146906001& rated_year ==1994; qui replace sample=1 if campus==61906001& rated_year ==2006; qui replace sample=1 if campus==57905008& rated_year ==2005; qui replace sample=1 if campus==212910001& rated_year ==2003; qui replace sample=1 if campus==80901001& rated_year ==2004; qui replace sample=1 if campus==146905001& rated_year ==2004; qui replace sample=1 if campus==146905001& rated_year ==2001; qui replace sample=1 if campus==196902001& rated_year ==2005; qui replace sample=1 if campus==93904002& rated_year ==1998; qui replace sample=1 if campus==122901002& rated_year ==2000; qui replace sample=1 if campus==140908001& rated_year ==2003; qui replace sample=1 if campus==165901042& rated_year ==1996; qui replace sample=1 if campus==101915002& rated_year ==1997; qui replace sample=1 if campus==94902001& rated_year ==1999; qui replace sample=1 if campus==31911001& rated_year ==1998; qui replace sample=1 if campus==5902001& rated_year ==1998; qui replace sample=1 if campus==7904001& rated_year ==2005; qui replace sample=1 if campus==95901001& rated_year ==2006; qui replace sample=1 if campus==107910001& rated_year ==1996; qui replace sample=1 if campus==84901001& rated_year ==1999; qui replace sample=1 if campus==246902001& rated_year ==2007; qui replace sample=1 if campus==57905097& rated_year ==1998; qui replace sample=1 if campus==176902002& rated_year ==2005; qui replace sample=1 if campus==168901001& rated_year ==1997; qui replace sample=1 if campus==79907006& rated_year ==2006; qui replace sample=1 if campus==146904001& rated_year ==2003; qui replace sample=1 if campus==61901003& rated_year ==1997; qui replace sample=1 if campus==136901001& rated_year ==1998; qui replace sample=1 if campus==178904002& rated_year ==1995; qui replace sample=1 if campus==201913001& rated_year ==2002; qui replace sample=1 if campus==181907001& rated_year ==2008; qui replace sample=1 if campus==46902001& rated_year ==1996; qui replace sample=1 if campus==179901001& rated_year ==1994; qui replace sample=1 if campus==114904001& rated_year ==1996; qui replace sample=1 if campus==71902002& rated_year ==1997; qui replace sample=1 if campus==101907007& rated_year ==1997; qui replace sample=1 if campus==247901001& rated_year ==1999; qui replace sample=1 if campus==220920001& rated_year ==2007; qui replace sample=1 if campus==236902002& rated_year ==1997; qui replace sample=1 if campus==58906001& rated_year ==2004; qui replace sample=1 if campus==163903001& rated_year ==2004; qui replace sample=1 if campus==123910007& rated_year ==1997; qui replace sample=1 if campus==190903001& rated_year ==1998; qui replace sample=1 if campus==146902002& rated_year ==2008; qui replace sample=1 if campus==227901010& rated_year ==1995; qui replace sample=1 if campus==215901001& rated_year ==2002; qui replace sample=1 if campus==176901001& rated_year ==1994; qui replace sample=1 if campus==70908001& rated_year ==2003; qui replace sample=1 if campus==92906002& rated_year ==2006; qui replace sample=1 if campus==71905002& rated_year ==1996; qui replace sample=1 if campus==249901001& rated_year ==2007; qui replace sample=1 if campus==146902002& rated_year ==1997; qui replace sample=1 if campus==227901006& rated_year ==1996; qui replace sample=1 if campus==199902002& rated_year ==2008; qui replace sample=1 if campus==229904001& rated_year ==1996; qui replace sample=1 if campus==220905004& rated_year ==2000; qui replace sample=1 if campus==107902001& rated_year ==2001; qui replace sample=1 if campus==81905002& rated_year ==2004; qui replace sample=1 if campus==163904001& rated_year ==1997; qui replace sample=1 if campus==134901001& rated_year ==2005; qui replace sample=1 if campus==67902001& rated_year ==2004; qui replace sample=1 if campus==37901001& rated_year ==2001; qui replace sample=1 if campus==91913001& rated_year ==1998; qui replace sample=1 if campus==84910001& rated_year ==2000; qui replace sample=1 if campus==207901001& rated_year ==2006; qui replace sample=1 if campus==161909001& rated_year ==2007; qui replace sample=1 if campus==146901001& rated_year ==2003; qui replace sample=1 if campus==101912033& rated_year ==1999; qui replace sample=1 if campus==14909002& rated_year ==2006; qui replace sample=1 if campus==146901001& rated_year ==1999; qui replace sample=1 if campus==14901001& rated_year ==1997; qui replace sample=1 if campus==146901001& rated_year ==1997; qui replace sample=1 if campus==146901001& rated_year ==1996; qui replace sample=1 if campus==15907182& rated_year ==2003; qui replace sample=1 if campus==19909001& rated_year ==2004; qui replace sample=1 if campus==99903001& rated_year ==1999; qui replace sample=1 if campus==157901001& rated_year ==2003; qui replace sample=1 if campus==57909005& rated_year ==2007; qui replace sample=1 if campus==101912025& rated_year ==2007; qui replace sample=1 if campus==61911001& rated_year ==1995; qui replace sample=1 if campus==22901001& rated_year ==2001; qui replace sample=1 if campus==145902001& rated_year ==2008; qui replace sample=1 if campus==70912002& rated_year ==2001; qui replace sample=1 if campus==250905001& rated_year ==1998; qui replace sample=1 if campus==195901001& rated_year ==2003; qui replace sample=1 if campus==57909004& rated_year ==2004; qui replace sample=1 if campus==20901001& rated_year ==1997; qui replace sample=1 if campus==152909001& rated_year ==2000; qui replace sample=1 if campus==46902002& rated_year ==2003; qui replace sample=1 if campus==57906001& rated_year ==1999; qui replace sample=1 if campus==145906001& rated_year ==2003; qui replace sample=1 if campus==108909003& rated_year ==1996; qui replace sample=1 if campus==7906001& rated_year ==2001; qui replace sample=1 if campus==145906001& rated_year ==1998; qui replace sample=1 if campus==145906001& rated_year ==1997; qui replace sample=1 if campus==15904001& rated_year ==2000; qui replace sample=1 if campus==232902001& rated_year ==2008; qui replace sample=1 if campus==101910002& rated_year ==2002; qui replace sample=1 if campus==145902001& rated_year ==2007; qui replace sample=1 if campus==126907001& rated_year ==1997; qui replace sample=1 if campus==100907001& rated_year ==2005; qui replace sample=1 if campus==57903002& rated_year ==2008; qui replace sample=1 if campus==19912001& rated_year ==2004; qui replace sample=1 if campus==15904002& rated_year ==1997; qui replace sample=1 if campus==15901001& rated_year ==2007; qui replace sample=1 if campus==145902001& rated_year ==1995; qui replace sample=1 if campus==145902001& rated_year ==1994; qui replace sample=1 if campus==145901002& rated_year ==2008; qui replace sample=1 if campus==121906001& rated_year ==2005; qui replace sample=1 if campus==57905006& rated_year ==2003; qui replace sample=1 if campus==174906001& rated_year ==2006; qui replace sample=1 if campus==170903002& rated_year ==2006; qui replace sample=1 if campus==40902001& rated_year ==1997; qui replace sample=1 if campus==153904001& rated_year ==2007; qui replace sample=1 if campus==136901001& rated_year ==2003; qui replace sample=1 if campus==71902004& rated_year ==2004; qui replace sample=1 if campus==145911002& rated_year ==2007; qui replace sample=1 if campus==57905039& rated_year ==2005; qui replace sample=1 if campus==108904001& rated_year ==1994; qui replace sample=1 if campus==101917004& rated_year ==2001; qui replace sample=1 if campus==236902002& rated_year ==1999; qui replace sample=1 if campus==161923001& rated_year ==1997; qui replace sample=1 if campus==75901001& rated_year ==1998; qui replace sample=1 if campus==181907001& rated_year ==2005; qui replace sample=1 if campus==89901001& rated_year ==2001; qui replace sample=1 if campus==14902001& rated_year ==1997; qui replace sample=1 if campus==81904001& rated_year ==2005; qui replace sample=1 if campus==19912001& rated_year ==2006; qui replace sample=1 if campus==46902002& rated_year ==1994; qui replace sample=1 if campus==93901001& rated_year ==2008; qui replace sample=1 if campus==30902001& rated_year ==2003; qui replace sample=1 if campus==101924001& rated_year ==1998; qui replace sample=1 if campus==144902001& rated_year ==2002; qui replace sample=1 if campus==250905001& rated_year ==2000; qui replace sample=1 if campus==20906002& rated_year ==2000; qui replace sample=1 if campus==71905001& rated_year ==1997; qui replace sample=1 if campus==210901001& rated_year ==2000; qui replace sample=1 if campus==101916001& rated_year ==1994; qui replace sample=1 if campus==212904002& rated_year ==2005; qui replace sample=1 if campus==15915002& rated_year ==1998; qui replace sample=1 if campus==43903001& rated_year ==1998; qui replace sample=1 if campus==101912024& rated_year ==1998; qui replace sample=1 if campus==144901001& rated_year ==2004; qui replace sample=1 if campus==144901001& rated_year ==2003; qui replace sample=1 if campus==101912012& rated_year ==1998; qui replace sample=1 if campus==243902001& rated_year ==1995; qui replace sample=1 if campus==127901001& rated_year ==2007; qui replace sample=1 if campus==92903001& rated_year ==2005; qui replace sample=1 if campus==144901001& rated_year ==1995; qui replace sample=1 if campus==220905016& rated_year ==2008; qui replace sample=1 if campus==243905004& rated_year ==2006; qui replace sample=1 if campus==79901002& rated_year ==1996; qui replace sample=1 if campus==35901001& rated_year ==2004; qui replace sample=1 if campus==83903001& rated_year ==2001; qui replace sample=1 if campus==16901001& rated_year ==2008; qui replace sample=1 if campus==225902001& rated_year ==1999; qui replace sample=1 if campus==249906001& rated_year ==1999; qui replace sample=1 if campus==79907004& rated_year ==2008; qui replace sample=1 if campus==150901001& rated_year ==1994; qui replace sample=1 if campus==57911001& rated_year ==2006; qui replace sample=1 if campus==234904001& rated_year ==1999; qui replace sample=1 if campus==219903001& rated_year ==1997; qui replace sample=1 if campus==178909001& rated_year ==2002; qui replace sample=1 if campus==31903003& rated_year ==2003; qui replace sample=1 if campus==107905001& rated_year ==2004; qui replace sample=1 if campus==84903001& rated_year ==1995; qui replace sample=1 if campus==54902001& rated_year ==1996; qui replace sample=1 if campus==26903002& rated_year ==2001; qui replace sample=1 if campus==143901001& rated_year ==2008; qui replace sample=1 if campus==187907002& rated_year ==1997; qui replace sample=1 if campus==143901001& rated_year ==2005; qui replace sample=1 if campus==14903001& rated_year ==1995; qui replace sample=1 if campus==47902001& rated_year ==2004; qui replace sample=1 if campus==252901001& rated_year ==1997; qui replace sample=1 if campus==58906001& rated_year ==1996; qui replace sample=1 if campus==252901001& rated_year ==2004; qui replace sample=1 if campus==57905039& rated_year ==1996; qui replace sample=1 if campus==201902001& rated_year ==1995; qui replace sample=1 if campus==57914004& rated_year ==1995; qui replace sample=1 if campus==121904001& rated_year ==2005; qui replace sample=1 if campus==91908001& rated_year ==1998; qui replace sample=1 if campus==28903001& rated_year ==2008; qui replace sample=1 if campus==239901001& rated_year ==1994; qui replace sample=1 if campus==84911001& rated_year ==2004; qui replace sample=1 if campus==15907007& rated_year ==1994; qui replace sample=1 if campus==164901001& rated_year ==1996; qui replace sample=1 if campus==142901001& rated_year ==2008; qui replace sample=1 if campus==142901001& rated_year ==2007; qui replace sample=1 if campus==49901001& rated_year ==2006; qui replace sample=1 if campus==178913001& rated_year ==2007; qui replace sample=1 if campus==234902001& rated_year ==2002; qui replace sample=1 if campus==109911001& rated_year ==1994; qui replace sample=1 if campus==25902001& rated_year ==2005; qui replace sample=1 if campus==142901001& rated_year ==2000; qui replace sample=1 if campus==39903001& rated_year ==2003; qui replace sample=1 if campus==136901001& rated_year ==2000; qui replace sample=1 if campus==79907004& rated_year ==1997; qui replace sample=1 if campus==133901001& rated_year ==2008; qui replace sample=1 if campus==249906001& rated_year ==2006; qui replace sample=1 if campus==187907002& rated_year ==1994; qui replace sample=1 if campus==112901002& rated_year ==2005; qui replace sample=1 if campus==141902001& rated_year ==2006; qui replace sample=1 if campus==15910001& rated_year ==2000; qui replace sample=1 if campus==123907001& rated_year ==1996; qui replace sample=1 if campus==220905010& rated_year ==1999; qui replace sample=1 if campus==141902001& rated_year ==1998; qui replace sample=1 if campus==170902003& rated_year ==2001; qui replace sample=1 if campus==15908001& rated_year ==1999; qui replace sample=1 if campus==57905032& rated_year ==2006; qui replace sample=1 if campus==253901001& rated_year ==2004; qui replace sample=1 if campus==170903002& rated_year ==1995; qui replace sample=1 if campus==44902001& rated_year ==1999; qui replace sample=1 if campus==248902001& rated_year ==2000; qui replace sample=1 if campus==108910001& rated_year ==1996; qui replace sample=1 if campus==242902001& rated_year ==2000; qui replace sample=1 if campus==1904001& rated_year ==2007; qui replace sample=1 if campus==185903001& rated_year ==2003; qui replace sample=1 if campus==141901001& rated_year ==2008; qui replace sample=1 if campus==187904001& rated_year ==1994; qui replace sample=1 if campus==82902001& rated_year ==2002; qui replace sample=1 if campus==184908001& rated_year ==2008; qui replace sample=1 if campus==141901001& rated_year ==1997; qui replace sample=1 if campus==141901001& rated_year ==1996; qui replace sample=1 if campus==227913001& rated_year ==2001; qui replace sample=1 if campus==67903001& rated_year ==2003; qui replace sample=1 if campus==37907002& rated_year ==1997; qui replace sample=1 if campus==43910004& rated_year ==1997; qui replace sample=1 if campus==37904002& rated_year ==1998; qui replace sample=1 if campus==106901001& rated_year ==1997; qui replace sample=1 if campus==71905005& rated_year ==2002; qui replace sample=1 if campus==120901001& rated_year ==1999; qui replace sample=1 if campus==236901002& rated_year ==2000; qui replace sample=1 if campus==46901001& rated_year ==2000; qui replace sample=1 if campus==140908001& rated_year ==2008; qui replace sample=1 if campus==250904001& rated_year ==2004; qui replace sample=1 if campus==65901001& rated_year ==1997; qui replace sample=1 if campus==70915001& rated_year ==2002; qui replace sample=1 if campus==113902002& rated_year ==2006; qui replace sample=1 if campus==31916004& rated_year ==1997; qui replace sample=1 if campus==209901001& rated_year ==1996; qui replace sample=1 if campus==126901001& rated_year ==2002; qui replace sample=1 if campus==211902001& rated_year ==1998; qui replace sample=1 if campus==178914001& rated_year ==2005; qui replace sample=1 if campus==250904001& rated_year ==2008; qui replace sample=1 if campus==43914001& rated_year ==2005; qui replace sample=1 if campus==137901001& rated_year ==2000; qui replace sample=1 if campus==204904001& rated_year ==2004; qui replace sample=1 if campus==7904001& rated_year ==1995; qui replace sample=1 if campus==129901001& rated_year ==1995; qui replace sample=1 if campus==59901001& rated_year ==2000; qui replace sample=1 if campus==26901001& rated_year ==2004; qui replace sample=1 if campus==36902001& rated_year ==2005; qui replace sample=1 if campus==49907001& rated_year ==1996; qui replace sample=1 if campus==247901001& rated_year ==2008; qui replace sample=1 if campus==108904001& rated_year ==1995; qui replace sample=1 if campus==126908001& rated_year ==1997; qui replace sample=1 if campus==31901002& rated_year ==2004; qui replace sample=1 if campus==57912002& rated_year ==2005; qui replace sample=1 if campus==31911001& rated_year ==1999; qui replace sample=1 if campus==243903001& rated_year ==1996; qui replace sample=1 if campus==235902002& rated_year ==1997; qui replace sample=1 if campus==140905002& rated_year ==2003; qui replace sample=1 if campus==123910008& rated_year ==1995; qui replace sample=1 if campus==152908001& rated_year ==1994; qui replace sample=1 if campus==153904001& rated_year ==2003; qui replace sample=1 if campus==140908001& rated_year ==1999; qui replace sample=1 if campus==13905001& rated_year ==1995; qui replace sample=1 if campus==15907003& rated_year ==2001; qui replace sample=1 if campus==161914003& rated_year ==2002; qui replace sample=1 if campus==170908001& rated_year ==1996; qui replace sample=1 if campus==174903001& rated_year ==2004; qui replace sample=1 if campus==111901001& rated_year ==2003; qui replace sample=1 if campus==31901002& rated_year ==2002; qui replace sample=1 if campus==101913002& rated_year ==2006; qui replace sample=1 if campus==201910002& rated_year ==2007; qui replace sample=1 if campus==92903001& rated_year ==2007; qui replace sample=1 if campus==57905022& rated_year ==2004; qui replace sample=1 if campus==186902001& rated_year ==2006; qui replace sample=1 if campus==245902001& rated_year ==1998; qui replace sample=1 if campus==163903001& rated_year ==1994; qui replace sample=1 if campus==95901001& rated_year ==1997; qui replace sample=1 if campus==165902001& rated_year ==2008; qui replace sample=1 if campus==31901001& rated_year ==2005; qui replace sample=1 if campus==207901001& rated_year ==1998; qui replace sample=1 if campus==139912001& rated_year ==2005; qui replace sample=1 if campus==139912001& rated_year ==2004; qui replace sample=1 if campus==232903002& rated_year ==2003; qui replace sample=1 if campus==61901003& rated_year ==2008; qui replace sample=1 if campus==180902001& rated_year ==2007; qui replace sample=1 if campus==139912001& rated_year ==1994; qui replace sample=1 if campus==139911002& rated_year ==2008; qui replace sample=1 if campus==61901003& rated_year ==2007; qui replace sample=1 if campus==15907002& rated_year ==2001; qui replace sample=1 if campus==71902005& rated_year ==2001; qui replace sample=1 if campus==177902001& rated_year ==2001; qui replace sample=1 if campus==77902001& rated_year ==2008; qui replace sample=1 if campus==101911002& rated_year ==2003; qui replace sample=1 if campus==139911002& rated_year ==1997; qui replace sample=1 if campus==227901010& rated_year ==2006; qui replace sample=1 if campus==102901002& rated_year ==1994; qui replace sample=1 if campus==240901001& rated_year ==1994; qui replace sample=1 if campus==201903001& rated_year ==2008; qui replace sample=1 if campus==241902001& rated_year ==1994; qui replace sample=1 if campus==152907001& rated_year ==2000; qui replace sample=1 if campus==126911001& rated_year ==2008; qui replace sample=1 if campus==92907001& rated_year ==1999; qui replace sample=1 if campus==116902001& rated_year ==2008; qui replace sample=1 if campus==117901001& rated_year ==2000; qui replace sample=1 if campus==220910001& rated_year ==2008; qui replace sample=1 if campus==127904001& rated_year ==1996; qui replace sample=1 if campus==167901001& rated_year ==1999; qui replace sample=1 if campus==158902001& rated_year ==1997; qui replace sample=1 if campus==119902001& rated_year ==2000; qui replace sample=1 if campus==77902001& rated_year ==1995; qui replace sample=1 if campus==129904001& rated_year ==2006; qui replace sample=1 if campus==166901002& rated_year ==1995; qui replace sample=1 if campus==210903002& rated_year ==1999; qui replace sample=1 if campus==74903001& rated_year ==1998; qui replace sample=1 if campus==101902001& rated_year ==1994; qui replace sample=1 if campus==79901001& rated_year ==2002; qui replace sample=1 if campus==139905001& rated_year ==2007; qui replace sample=1 if campus==139905001& rated_year ==2006; qui replace sample=1 if campus==146901001& rated_year ==1994; qui replace sample=1 if campus==158901001& rated_year ==2004; qui replace sample=1 if campus==139905001& rated_year ==1999; qui replace sample=1 if campus==146907001& rated_year ==2002; qui replace sample=1 if campus==139905001& rated_year ==1996; qui replace sample=1 if campus==139905001& rated_year ==1995; qui replace sample=1 if campus==139905001& rated_year ==1994; qui replace sample=1 if campus==15909001& rated_year ==2005; qui replace sample=1 if campus==45905002& rated_year ==2003; qui replace sample=1 if campus==140905002& rated_year ==2002; qui replace sample=1 if campus==200904001& rated_year ==2001; qui replace sample=1 if campus==181908001& rated_year ==1994; qui replace sample=1 if campus==44902001& rated_year ==1997; qui replace sample=1 if campus==243905004& rated_year ==2008; qui replace sample=1 if campus==34907001& rated_year ==1996; qui replace sample=1 if campus==71902011& rated_year ==2001; qui replace sample=1 if campus==61902004& rated_year ==1999; qui replace sample=1 if campus==57909004& rated_year ==2003; qui replace sample=1 if campus==112908001& rated_year ==2006; qui replace sample=1 if campus==188901001& rated_year ==2008; qui replace sample=1 if campus==84906001& rated_year ==1995; qui replace sample=1 if campus==90904001& rated_year ==2008; qui replace sample=1 if campus==70903002& rated_year ==1998; qui replace sample=1 if campus==70910001& rated_year ==2001; qui replace sample=1 if campus==198905002& rated_year ==1996; qui replace sample=1 if campus==161906002& rated_year ==2001; qui replace sample=1 if campus==43901001& rated_year ==1998; qui replace sample=1 if campus==250902001& rated_year ==1995; qui replace sample=1 if campus==137903001& rated_year ==2004; qui replace sample=1 if campus==137903001& rated_year ==2001; qui replace sample=1 if campus==194903001& rated_year ==1994; qui replace sample=1 if campus==137903001& rated_year ==1998; qui replace sample=1 if campus==137903001& rated_year ==1995; qui replace sample=1 if campus==123910001& rated_year ==2006; qui replace sample=1 if campus==84903001& rated_year ==2001; qui replace sample=1 if campus==71902003& rated_year ==1997; qui replace sample=1 if campus==113905001& rated_year ==2001; qui replace sample=1 if campus==210901001& rated_year ==2003; qui replace sample=1 if campus==35902001& rated_year ==2004; qui replace sample=1 if campus==71902010& rated_year ==2004; qui replace sample=1 if campus==177901001& rated_year ==2000; qui replace sample=1 if campus==161914002& rated_year ==1997; qui replace sample=1 if campus==152906001& rated_year ==2004; qui replace sample=1 if campus==166904001& rated_year ==2008; qui replace sample=1 if campus==102905001& rated_year ==1995; qui replace sample=1 if campus==221912001& rated_year ==2007; qui replace sample=1 if campus==31911001& rated_year ==1995; qui replace sample=1 if campus==178904004& rated_year ==1999; qui replace sample=1 if campus==101912017& rated_year ==1999; qui replace sample=1 if campus==101913001& rated_year ==2000; qui replace sample=1 if campus==200902001& rated_year ==2005; qui replace sample=1 if campus==92903001& rated_year ==1996; qui replace sample=1 if campus==250902001& rated_year ==2000; qui replace sample=1 if campus==37904002& rated_year ==1996; qui replace sample=1 if campus==181905001& rated_year ==2008; qui replace sample=1 if campus==137901001& rated_year ==2001; qui replace sample=1 if campus==137901001& rated_year ==1998; qui replace sample=1 if campus==137901001& rated_year ==1997; qui replace sample=1 if campus==250902001& rated_year ==2001; qui replace sample=1 if campus==169901001& rated_year ==1996; qui replace sample=1 if campus==30903001& rated_year ==1996; qui replace sample=1 if campus==14905001& rated_year ==1996; qui replace sample=1 if campus==31903001& rated_year ==1997; qui replace sample=1 if campus==126903001& rated_year ==2000; qui replace sample=1 if campus==136901001& rated_year ==2006; qui replace sample=1 if campus==71902008& rated_year ==2006; qui replace sample=1 if campus==189901001& rated_year ==1998; qui replace sample=1 if campus==136901001& rated_year ==1999; qui replace sample=1 if campus==15905003& rated_year ==2000; qui replace sample=1 if campus==15907008& rated_year ==2008; qui replace sample=1 if campus==34901001& rated_year ==2003; qui replace sample=1 if campus==81902002& rated_year ==1995; qui replace sample=1 if campus==15909001& rated_year ==1996; qui replace sample=1 if campus==234903001& rated_year ==1999; qui replace sample=1 if campus==79907006& rated_year ==1999; qui replace sample=1 if campus==101912034& rated_year ==2005; qui replace sample=1 if campus==250902001& rated_year ==2006; qui replace sample=1 if campus==227901004& rated_year ==1996; qui replace sample=1 if campus==62903001& rated_year ==1999; qui replace sample=1 if campus==134901001& rated_year ==2004; qui replace sample=1 if campus==130902001& rated_year ==1997; qui replace sample=1 if campus==13901001& rated_year ==2008; qui replace sample=1 if campus==57905002& rated_year ==2008; qui replace sample=1 if campus==108913004& rated_year ==1998; qui replace sample=1 if campus==123914001& rated_year ==2007; qui replace sample=1 if campus==250902001& rated_year ==2007; qui replace sample=1 if campus==57912004& rated_year ==1994; qui replace sample=1 if campus==196903001& rated_year ==1994; qui replace sample=1 if campus==2901001& rated_year ==1997; qui replace sample=1 if campus==57914001& rated_year ==2001; qui replace sample=1 if campus==81904001& rated_year ==2007; qui replace sample=1 if campus==227910001& rated_year ==2007; qui replace sample=1 if campus==240903001& rated_year ==2000; qui replace sample=1 if campus==71902009& rated_year ==2004; qui replace sample=1 if campus==184904001& rated_year ==2001; qui replace sample=1 if campus==133904001& rated_year ==1997; qui replace sample=1 if campus==133904001& rated_year ==1996; qui replace sample=1 if campus==57905007& rated_year ==1995; qui replace sample=1 if campus==25901001& rated_year ==2004; qui replace sample=1 if campus==101912017& rated_year ==1995; qui replace sample=1 if campus==91905001& rated_year ==2001; qui replace sample=1 if campus==71905001& rated_year ==2003; qui replace sample=1 if campus==201902001& rated_year ==1999; qui replace sample=1 if campus==133903001& rated_year ==1995; qui replace sample=1 if campus==234903001& rated_year ==1995; qui replace sample=1 if campus==108916001& rated_year ==2005; qui replace sample=1 if campus==43910003& rated_year ==2005; qui replace sample=1 if campus==220920001& rated_year ==1995; qui replace sample=1 if campus==133903001& rated_year ==2004; qui replace sample=1 if campus==133903001& rated_year ==2002; qui replace sample=1 if campus==220910001& rated_year ==1995; qui replace sample=1 if campus==101917003& rated_year ==2001; qui replace sample=1 if campus==133903001& rated_year ==1994; qui replace sample=1 if campus==16902001& rated_year ==1998; qui replace sample=1 if campus==212909001& rated_year ==1999; qui replace sample=1 if campus==57905014& rated_year ==2000; qui replace sample=1 if campus==101915002& rated_year ==2004; qui replace sample=1 if campus==234902001& rated_year ==2003; qui replace sample=1 if campus==158902001& rated_year ==2003; qui replace sample=1 if campus==101917003& rated_year ==2004; qui replace sample=1 if campus==163908001& rated_year ==2000; qui replace sample=1 if campus==91918001& rated_year ==2006; qui replace sample=1 if campus==174902001& rated_year ==1998; qui replace sample=1 if campus==19906001& rated_year ==1994; qui replace sample=1 if campus==133901001& rated_year ==2004; qui replace sample=1 if campus==74917001& rated_year ==1994; qui replace sample=1 if campus==133901001& rated_year ==2002; qui replace sample=1 if campus==174908001& rated_year ==2002; qui replace sample=1 if campus==133901001& rated_year ==1998; qui replace sample=1 if campus==101915002& rated_year ==2001; qui replace sample=1 if campus==6902001& rated_year ==2001; qui replace sample=1 if campus==227907001& rated_year ==1995; qui replace sample=1 if campus==244903001& rated_year ==1999; qui replace sample=1 if campus==146901001& rated_year ==2000; qui replace sample=1 if campus==178908001& rated_year ==1997; qui replace sample=1 if campus==108913004& rated_year ==2000; qui replace sample=1 if campus==126905001& rated_year ==2003; qui replace sample=1 if campus==213901001& rated_year ==2000; qui replace sample=1 if campus==227901005& rated_year ==2005; qui replace sample=1 if campus==31905001& rated_year ==2003; qui replace sample=1 if campus==220907001& rated_year ==2004; qui replace sample=1 if campus==130902001& rated_year ==2005; qui replace sample=1 if campus==116903001& rated_year ==1996; qui replace sample=1 if campus==142901001& rated_year ==2004; qui replace sample=1 if campus==95901001& rated_year ==2002; qui replace sample=1 if campus==142901001& rated_year ==2006; qui replace sample=1 if campus==240901001& rated_year ==2002; qui replace sample=1 if campus==101907002& rated_year ==2004; qui replace sample=1 if campus==15905002& rated_year ==1997; qui replace sample=1 if campus==231901001& rated_year ==1994; qui replace sample=1 if campus==130901001& rated_year ==2008; qui replace sample=1 if campus==113905001& rated_year ==1998; qui replace sample=1 if campus==100905001& rated_year ==1994; qui replace sample=1 if campus==40901001& rated_year ==2005; qui replace sample=1 if campus==228903001& rated_year ==1996; qui replace sample=1 if campus==71903001& rated_year ==1998; qui replace sample=1 if campus==218901001& rated_year ==2005; qui replace sample=1 if campus==66902001& rated_year ==2005; qui replace sample=1 if campus==15907007& rated_year ==2005; qui replace sample=1 if campus==3906001& rated_year ==1999; qui replace sample=1 if campus==145906001& rated_year ==2008; qui replace sample=1 if campus==129910001& rated_year ==2000; qui replace sample=1 if campus==71902001& rated_year ==1995; qui replace sample=1 if campus==220920001& rated_year ==1997; qui replace sample=1 if campus==250903001& rated_year ==1994; qui replace sample=1 if campus==70903002& rated_year ==2000; qui replace sample=1 if campus==210901001& rated_year ==1994; qui replace sample=1 if campus==24901001& rated_year ==2008; qui replace sample=1 if campus==172902001& rated_year ==2002; qui replace sample=1 if campus==31901004& rated_year ==1998; qui replace sample=1 if campus==165901044& rated_year ==2007; qui replace sample=1 if campus==56901001& rated_year ==2003; qui replace sample=1 if campus==127901001& rated_year ==1995; qui replace sample=1 if campus==105905001& rated_year ==2007; qui replace sample=1 if campus==230902002& rated_year ==1996; qui replace sample=1 if campus==101914001& rated_year ==1997; qui replace sample=1 if campus==7904001& rated_year ==2004; qui replace sample=1 if campus==144901001& rated_year ==1994; qui replace sample=1 if campus==129906002& rated_year ==2002; qui replace sample=1 if campus==15907182& rated_year ==1995; qui replace sample=1 if campus==1908002& rated_year ==2005; qui replace sample=1 if campus==188901001& rated_year ==2000; qui replace sample=1 if campus==68901003& rated_year ==1996; qui replace sample=1 if campus==96904001& rated_year ==1996; qui replace sample=1 if campus==146902002& rated_year ==2003; qui replace sample=1 if campus==249901001& rated_year ==2006; qui replace sample=1 if campus==129905001& rated_year ==2000; qui replace sample=1 if campus==227901038& rated_year ==1996; qui replace sample=1 if campus==92906002& rated_year ==2004; qui replace sample=1 if campus==129905001& rated_year ==1994; qui replace sample=1 if campus==101913001& rated_year ==2007; qui replace sample=1 if campus==195901001& rated_year ==2004; qui replace sample=1 if campus==105902001& rated_year ==1994; qui replace sample=1 if campus==175902001& rated_year ==1994; qui replace sample=1 if campus==129904001& rated_year ==2003; qui replace sample=1 if campus==243905002& rated_year ==2006; qui replace sample=1 if campus==129904001& rated_year ==1998; qui replace sample=1 if campus==83901001& rated_year ==2003; qui replace sample=1 if campus==108910001& rated_year ==2008; qui replace sample=1 if campus==14906001& rated_year ==1995; qui replace sample=1 if campus==129903001& rated_year ==1999; qui replace sample=1 if campus==57914001& rated_year ==1997; qui replace sample=1 if campus==201913001& rated_year ==2005; qui replace sample=1 if campus==14903001& rated_year ==2008; qui replace sample=1 if campus==187904001& rated_year ==2005; qui replace sample=1 if campus==101902005& rated_year ==1994; qui replace sample=1 if campus==129906002& rated_year ==1998; qui replace sample=1 if campus==227904001& rated_year ==2003; qui replace sample=1 if campus==57905026& rated_year ==1998; qui replace sample=1 if campus==190903001& rated_year ==2006; qui replace sample=1 if campus==116903001& rated_year ==1994; qui replace sample=1 if campus==241906001& rated_year ==1997; qui replace sample=1 if campus==57910002& rated_year ==2002; qui replace sample=1 if campus==31901002& rated_year ==1996; qui replace sample=1 if campus==31916004& rated_year ==2002; qui replace sample=1 if campus==4901001& rated_year ==2002; qui replace sample=1 if campus==129902001& rated_year ==2008; qui replace sample=1 if campus==220905016& rated_year ==1998; qui replace sample=1 if campus==25902001& rated_year ==2003; qui replace sample=1 if campus==20907001& rated_year ==1998; qui replace sample=1 if campus==71905004& rated_year ==2001; qui replace sample=1 if campus==129902001& rated_year ==1995; qui replace sample=1 if campus==129902001& rated_year ==1994; qui replace sample=1 if campus==240901002& rated_year ==2008; qui replace sample=1 if campus==33902001& rated_year ==2007; qui replace sample=1 if campus==177902001& rated_year ==2003; qui replace sample=1 if campus==129901001& rated_year ==1998; qui replace sample=1 if campus==129901001& rated_year ==1997; qui replace sample=1 if campus==20905001& rated_year ==2005; qui replace sample=1 if campus==141902001& rated_year ==1994; qui replace sample=1 if campus==155901002& rated_year ==2002; qui replace sample=1 if campus==243905004& rated_year ==2000; qui replace sample=1 if campus==221911001& rated_year ==2004; qui replace sample=1 if campus==43902001& rated_year ==2003; qui replace sample=1 if campus==171901001& rated_year ==2002; qui replace sample=1 if campus==84910001& rated_year ==2007; qui replace sample=1 if campus==220902002& rated_year ==2000; qui replace sample=1 if campus==243903001& rated_year ==2000; qui replace sample=1 if campus==163908001& rated_year ==2001; qui replace sample=1 if campus==1908002& rated_year ==1995; qui replace sample=1 if campus==79907001& rated_year ==2006; qui replace sample=1 if campus==240901001& rated_year ==1999; qui replace sample=1 if campus==174903001& rated_year ==2008; qui replace sample=1 if campus==57905017& rated_year ==1996; qui replace sample=1 if campus==27904001& rated_year ==2002; qui replace sample=1 if campus==31901001& rated_year ==1996; qui replace sample=1 if campus==93904002& rated_year ==2008; qui replace sample=1 if campus==43904001& rated_year ==2005; qui replace sample=1 if campus==57905039& rated_year ==1995; qui replace sample=1 if campus==31906001& rated_year ==1995; qui replace sample=1 if campus==43918001& rated_year ==1997; qui replace sample=1 if campus==243905002& rated_year ==2005; qui replace sample=1 if campus==62901001& rated_year ==2008; qui replace sample=1 if campus==250904001& rated_year ==1994; qui replace sample=1 if campus==128902001& rated_year ==2006; qui replace sample=1 if campus==128902001& rated_year ==2002; qui replace sample=1 if campus==1907001& rated_year ==2000; qui replace sample=1 if campus==128902001& rated_year ==1999; qui replace sample=1 if campus==13903001& rated_year ==2006; qui replace sample=1 if campus==226906001& rated_year ==1995; qui replace sample=1 if campus==228901001& rated_year ==2004; qui replace sample=1 if campus==101912005& rated_year ==2003; qui replace sample=1 if campus==32902002& rated_year ==2003; qui replace sample=1 if campus==210901001& rated_year ==1998; qui replace sample=1 if campus==201913001& rated_year ==2003; qui replace sample=1 if campus==250904001& rated_year ==1997; qui replace sample=1 if campus==189902001& rated_year ==2006; qui replace sample=1 if campus==201902001& rated_year ==2007; qui replace sample=1 if campus==130902001& rated_year ==2002; qui replace sample=1 if campus==101914005& rated_year ==2002; qui replace sample=1 if campus==181908001& rated_year ==2003; qui replace sample=1 if campus==178904002& rated_year ==2007; qui replace sample=1 if campus==239901001& rated_year ==2008; qui replace sample=1 if campus==73903001& rated_year ==1999; qui replace sample=1 if campus==219903001& rated_year ==2001; qui replace sample=1 if campus==109905001& rated_year ==1997; qui replace sample=1 if campus==85902001& rated_year ==1994; qui replace sample=1 if campus==250904001& rated_year ==1999; qui replace sample=1 if campus==250907001& rated_year ==2000; qui replace sample=1 if campus==75902001& rated_year ==2001; qui replace sample=1 if campus==241903001& rated_year ==2000; qui replace sample=1 if campus==10902001& rated_year ==2003; qui replace sample=1 if campus==11902001& rated_year ==2005; qui replace sample=1 if campus==108906002& rated_year ==1998; qui replace sample=1 if campus==249901001& rated_year ==1998; qui replace sample=1 if campus==250904001& rated_year ==2002; qui replace sample=1 if campus==212910001& rated_year ==1995; qui replace sample=1 if campus==126908001& rated_year ==2006; qui replace sample=1 if campus==152903001& rated_year ==1998; qui replace sample=1 if campus==243905004& rated_year ==1995; qui replace sample=1 if campus==101913002& rated_year ==1998; qui replace sample=1 if campus==127904001& rated_year ==2001; qui replace sample=1 if campus==220912001& rated_year ==1996; qui replace sample=1 if campus==57905002& rated_year ==1994; qui replace sample=1 if campus==31911001& rated_year ==2004; qui replace sample=1 if campus==212902001& rated_year ==1996; qui replace sample=1 if campus==43910003& rated_year ==2000; qui replace sample=1 if campus==234903001& rated_year ==2001; qui replace sample=1 if campus==127903001& rated_year ==2006; qui replace sample=1 if campus==57911001& rated_year ==2000; qui replace sample=1 if campus==35902001& rated_year ==2002; qui replace sample=1 if campus==125905001& rated_year ==2008; qui replace sample=1 if campus==127903001& rated_year ==2001; qui replace sample=1 if campus==127903001& rated_year ==1998; qui replace sample=1 if campus==127903001& rated_year ==1997; qui replace sample=1 if campus==127903001& rated_year ==1996; qui replace sample=1 if campus==66903002& rated_year ==2006; qui replace sample=1 if campus==25902001& rated_year ==2004; qui replace sample=1 if campus==101916001& rated_year ==2008; qui replace sample=1 if campus==36901001& rated_year ==2000; qui replace sample=1 if campus==178914001& rated_year ==2006; qui replace sample=1 if campus==84910001& rated_year ==1996; qui replace sample=1 if campus==169902001& rated_year ==1998; qui replace sample=1 if campus==57905001& rated_year ==2006; qui replace sample=1 if campus==126911001& rated_year ==2003; qui replace sample=1 if campus==108916001& rated_year ==2007; qui replace sample=1 if campus==126911001& rated_year ==1999; qui replace sample=1 if campus==234906001& rated_year ==1997; qui replace sample=1 if campus==36903001& rated_year ==2003; qui replace sample=1 if campus==61902002& rated_year ==2008; qui replace sample=1 if campus==101914002& rated_year ==2000; qui replace sample=1 if campus==11901001& rated_year ==2004; qui replace sample=1 if campus==35902001& rated_year ==2008; qui replace sample=1 if campus==209901001& rated_year ==1994; qui replace sample=1 if campus==229901001& rated_year ==2005; qui replace sample=1 if campus==37904002& rated_year ==2007; qui replace sample=1 if campus==203901002& rated_year ==2003; qui replace sample=1 if campus==107906001& rated_year ==2004; qui replace sample=1 if campus==20902001& rated_year ==2001; qui replace sample=1 if campus==126908001& rated_year ==1998; qui replace sample=1 if campus==161922001& rated_year ==1996; qui replace sample=1 if campus==237902001& rated_year ==1995; qui replace sample=1 if campus==129904001& rated_year ==2001; qui replace sample=1 if campus==126907001& rated_year ==2008; qui replace sample=1 if campus==57912002& rated_year ==2002; qui replace sample=1 if campus==212905003& rated_year ==1995; qui replace sample=1 if campus==126907001& rated_year ==2005; qui replace sample=1 if campus==109904001& rated_year ==1995; qui replace sample=1 if campus==161908002& rated_year ==1998; qui replace sample=1 if campus==133903001& rated_year ==1996; qui replace sample=1 if campus==145902001& rated_year ==2006; qui replace sample=1 if campus==180901001& rated_year ==2005; qui replace sample=1 if campus==209901001& rated_year ==2000; qui replace sample=1 if campus==108906006& rated_year ==2004; qui replace sample=1 if campus==246909001& rated_year ==1994; qui replace sample=1 if campus==96904001& rated_year ==2006; qui replace sample=1 if campus==181906001& rated_year ==2007; qui replace sample=1 if campus==161914003& rated_year ==1994; qui replace sample=1 if campus==203901002& rated_year ==2005; qui replace sample=1 if campus==15915005& rated_year ==2000; qui replace sample=1 if campus==5902001& rated_year ==1995; qui replace sample=1 if campus==105906001& rated_year ==1995; qui replace sample=1 if campus==59901001& rated_year ==2005; qui replace sample=1 if campus==178914001& rated_year ==2004; qui replace sample=1 if campus==174902001& rated_year ==2006; qui replace sample=1 if campus==100904001& rated_year ==2007; qui replace sample=1 if campus==101919002& rated_year ==1999; qui replace sample=1 if campus==120901001& rated_year ==2008; qui replace sample=1 if campus==174904002& rated_year ==2006; qui replace sample=1 if campus==161912001& rated_year ==1995; qui replace sample=1 if campus==19901001& rated_year ==1998; qui replace sample=1 if campus==101912015& rated_year ==2006; qui replace sample=1 if campus==101912015& rated_year ==2007; qui replace sample=1 if campus==92901001& rated_year ==2007; qui replace sample=1 if campus==57909003& rated_year ==1998; qui replace sample=1 if campus==220905016& rated_year ==1996; qui replace sample=1 if campus==101902005& rated_year ==1996; qui replace sample=1 if campus==126905001& rated_year ==2006; qui replace sample=1 if campus==57910002& rated_year ==2000; qui replace sample=1 if campus==108908001& rated_year ==2003; qui replace sample=1 if campus==14901001& rated_year ==1998; qui replace sample=1 if campus==206901001& rated_year ==1994; qui replace sample=1 if campus==233901001& rated_year ==1996; qui replace sample=1 if campus==237902001& rated_year ==1997; qui replace sample=1 if campus==243905002& rated_year ==1997; qui replace sample=1 if campus==110907001& rated_year ==1995; qui replace sample=1 if campus==165901044& rated_year ==2008; qui replace sample=1 if campus==71901002& rated_year ==1998; qui replace sample=1 if campus==212904002& rated_year ==2008; qui replace sample=1 if campus==198905002& rated_year ==1994; qui replace sample=1 if campus==15910001& rated_year ==2003; qui replace sample=1 if campus==146904001& rated_year ==2006; qui replace sample=1 if campus==176901001& rated_year ==1999; qui replace sample=1 if campus==101912012& rated_year ==2000; qui replace sample=1 if campus==94904001& rated_year ==1998; qui replace sample=1 if campus==25902001& rated_year ==1998; qui replace sample=1 if campus==31901003& rated_year ==2008; qui replace sample=1 if campus==195901001& rated_year ==2000; qui replace sample=1 if campus==188901002& rated_year ==1994; qui replace sample=1 if campus==254901001& rated_year ==2008; qui replace sample=1 if campus==126903001& rated_year ==2008; qui replace sample=1 if campus==188901005& rated_year ==1995; qui replace sample=1 if campus==186902001& rated_year ==1995; qui replace sample=1 if campus==57910003& rated_year ==1995; qui replace sample=1 if campus==117903001& rated_year ==1998; qui replace sample=1 if campus==107901001& rated_year ==1998; qui replace sample=1 if campus==126903001& rated_year ==1997; qui replace sample=1 if campus==126903001& rated_year ==1995; qui replace sample=1 if campus==188901004& rated_year ==2003; qui replace sample=1 if campus==155901002& rated_year ==2001; qui replace sample=1 if campus==4901001& rated_year ==2008; qui replace sample=1 if campus==140905002& rated_year ==1994; qui replace sample=1 if campus==84902001& rated_year ==1997; qui replace sample=1 if campus==84908001& rated_year ==2000; qui replace sample=1 if campus==121903001& rated_year ==1998; qui replace sample=1 if campus==178909001& rated_year ==2005; qui replace sample=1 if campus==227901008& rated_year ==1998; qui replace sample=1 if campus==181901001& rated_year ==2004; qui replace sample=1 if campus==126902001& rated_year ==2001; qui replace sample=1 if campus==55901001& rated_year ==2001; qui replace sample=1 if campus==57905024& rated_year ==2008; qui replace sample=1 if campus==126902001& rated_year ==1999; qui replace sample=1 if campus==13905001& rated_year ==2005; qui replace sample=1 if campus==207901001& rated_year ==1995; qui replace sample=1 if campus==126902001& rated_year ==1994; qui replace sample=1 if campus==177902001& rated_year ==2007; qui replace sample=1 if campus==108906001& rated_year ==1998; qui replace sample=1 if campus==230902002& rated_year ==2004; qui replace sample=1 if campus==126907001& rated_year ==2006; qui replace sample=1 if campus==10902001& rated_year ==2006; qui replace sample=1 if campus==126901001& rated_year ==1994; qui replace sample=1 if campus==158902001& rated_year ==2008; qui replace sample=1 if campus==125902001& rated_year ==2004; qui replace sample=1 if campus==120905001& rated_year ==2008; qui replace sample=1 if campus==152906001& rated_year ==2003; qui replace sample=1 if campus==15915007& rated_year ==1994; qui replace sample=1 if campus==125905001& rated_year ==1998; qui replace sample=1 if campus==125905001& rated_year ==1996; qui replace sample=1 if campus==220912001& rated_year ==2008; qui replace sample=1 if campus==113906001& rated_year ==1999; qui replace sample=1 if campus==19901001& rated_year ==2000; qui replace sample=1 if campus==61905001& rated_year ==1997; qui replace sample=1 if campus==109905001& rated_year ==2007; qui replace sample=1 if campus==212910001& rated_year ==1994; qui replace sample=1 if campus==243903001& rated_year ==1998; qui replace sample=1 if campus==125903001& rated_year ==1995; qui replace sample=1 if campus==71905002& rated_year ==2005; qui replace sample=1 if campus==123907002& rated_year ==2002; qui replace sample=1 if campus==125902001& rated_year ==2008; qui replace sample=1 if campus==245903001& rated_year ==1996; qui replace sample=1 if campus==105902001& rated_year ==1996; qui replace sample=1 if campus==204904001& rated_year ==2005; qui replace sample=1 if campus==117904001& rated_year ==2002; qui replace sample=1 if campus==108911001& rated_year ==1995; qui replace sample=1 if campus==109905001& rated_year ==1999; qui replace sample=1 if campus==174903001& rated_year ==2000; qui replace sample=1 if campus==31916005& rated_year ==2006; qui replace sample=1 if campus==229905001& rated_year ==2005; qui replace sample=1 if campus==84902001& rated_year ==2005; qui replace sample=1 if campus==59901001& rated_year ==1994; qui replace sample=1 if campus==184907001& rated_year ==2008; qui replace sample=1 if campus==25901001& rated_year ==2001; qui replace sample=1 if campus==246913001& rated_year ==1998; qui replace sample=1 if campus==71909002& rated_year ==1997; qui replace sample=1 if campus==124901001& rated_year ==2008; qui replace sample=1 if campus==124901001& rated_year ==2007; qui replace sample=1 if campus==150901001& rated_year ==2006; qui replace sample=1 if campus==163901001& rated_year ==2000; qui replace sample=1 if campus==251901001& rated_year ==1997; qui replace sample=1 if campus==97902001& rated_year ==1995; qui replace sample=1 if campus==124901001& rated_year ==2000; qui replace sample=1 if campus==126902001& rated_year ==2000; qui replace sample=1 if campus==124901001& rated_year ==1996; qui replace sample=1 if campus==35901001& rated_year ==2003; qui replace sample=1 if campus==124901001& rated_year ==1994; qui replace sample=1 if campus==45902001& rated_year ==2003; qui replace sample=1 if campus==220917001& rated_year ==1999; qui replace sample=1 if campus==20901001& rated_year ==1996; qui replace sample=1 if campus==15907001& rated_year ==2003; qui replace sample=1 if campus==227901003& rated_year ==1997; qui replace sample=1 if campus==68901048& rated_year ==1995; qui replace sample=1 if campus==101912001& rated_year ==2002; qui replace sample=1 if campus==177902001& rated_year ==1995; qui replace sample=1 if campus==184904001& rated_year ==1994; qui replace sample=1 if campus==101907007& rated_year ==1999; qui replace sample=1 if campus==175902001& rated_year ==2007; qui replace sample=1 if campus==57909002& rated_year ==1998; qui replace sample=1 if campus==72902001& rated_year ==1999; qui replace sample=1 if campus==20901001& rated_year ==2002; qui replace sample=1 if campus==63903001& rated_year ==2001; qui replace sample=1 if campus==71901002& rated_year ==2000; qui replace sample=1 if campus==117904001& rated_year ==1994; qui replace sample=1 if campus==69902001& rated_year ==2003; qui replace sample=1 if campus==57905025& rated_year ==2000; qui replace sample=1 if campus==126903001& rated_year ==1996; qui replace sample=1 if campus==246909003& rated_year ==2007; qui replace sample=1 if campus==185903001& rated_year ==2000; qui replace sample=1 if campus==35902001& rated_year ==1996; qui replace sample=1 if campus==171901001& rated_year ==2001; qui replace sample=1 if campus==233901001& rated_year ==1995; qui replace sample=1 if campus==15908002& rated_year ==1999; qui replace sample=1 if campus==201913001& rated_year ==2006; qui replace sample=1 if campus==19907002& rated_year ==2002; qui replace sample=1 if campus==47902001& rated_year ==2005; qui replace sample=1 if campus==220907001& rated_year ==2002; qui replace sample=1 if campus==15913001& rated_year ==1998; qui replace sample=1 if campus==71904001& rated_year ==2003; qui replace sample=1 if campus==136901001& rated_year ==1995; qui replace sample=1 if campus==14905001& rated_year ==2008; qui replace sample=1 if campus==161903001& rated_year ==2000; qui replace sample=1 if campus==149901001& rated_year ==1997; qui replace sample=1 if campus==101912026& rated_year ==2008; qui replace sample=1 if campus==81902002& rated_year ==2001; qui replace sample=1 if campus==125903001& rated_year ==2004; qui replace sample=1 if campus==123910008& rated_year ==1999; qui replace sample=1 if campus==206901001& rated_year ==2004; qui replace sample=1 if campus==108909001& rated_year ==2008; qui replace sample=1 if campus==71906001& rated_year ==2007; qui replace sample=1 if campus==202905002& rated_year ==2003; qui replace sample=1 if campus==163908001& rated_year ==2008; qui replace sample=1 if campus==246909004& rated_year ==2002; qui replace sample=1 if campus==101920001& rated_year ==2006; qui replace sample=1 if campus==91906002& rated_year ==2000; qui replace sample=1 if campus==123910001& rated_year ==1994; qui replace sample=1 if campus==152906001& rated_year ==1994; qui replace sample=1 if campus==84906001& rated_year ==1999; qui replace sample=1 if campus==56901001& rated_year ==2004; qui replace sample=1 if campus==196903001& rated_year ==2007; qui replace sample=1 if campus==101912007& rated_year ==2006; qui replace sample=1 if campus==57905033& rated_year ==2001; qui replace sample=1 if campus==101914001& rated_year ==2003; qui replace sample=1 if campus==14908001& rated_year ==2008; qui replace sample=1 if campus==49903001& rated_year ==2007; qui replace sample=1 if campus==175907001& rated_year ==1996; qui replace sample=1 if campus==123910001& rated_year ==2007; qui replace sample=1 if campus==43910004& rated_year ==2001; qui replace sample=1 if campus==42901001& rated_year ==2006; qui replace sample=1 if campus==123910001& rated_year ==2002; qui replace sample=1 if campus==101914002& rated_year ==1995; qui replace sample=1 if campus==43910003& rated_year ==2006; qui replace sample=1 if campus==40902001& rated_year ==2006; qui replace sample=1 if campus==101907004& rated_year ==2008; qui replace sample=1 if campus==102906001& rated_year ==1999; qui replace sample=1 if campus==169901001& rated_year ==2004; qui replace sample=1 if campus==108902001& rated_year ==2006; qui replace sample=1 if campus==250902001& rated_year ==2004; qui replace sample=1 if campus==181905001& rated_year ==2006; qui replace sample=1 if campus==14906001& rated_year ==2002; qui replace sample=1 if campus==189901001& rated_year ==2006; qui replace sample=1 if campus==139912001& rated_year ==2002; qui replace sample=1 if campus==57909004& rated_year ==2001; qui replace sample=1 if campus==123908001& rated_year ==1997; qui replace sample=1 if campus==187904001& rated_year ==2002; qui replace sample=1 if campus==123908001& rated_year ==1994; qui replace sample=1 if campus==101917003& rated_year ==1997; qui replace sample=1 if campus==11902001& rated_year ==2003; qui replace sample=1 if campus==229901001& rated_year ==1998; qui replace sample=1 if campus==71904001& rated_year ==1998; qui replace sample=1 if campus==19901001& rated_year ==2005; qui replace sample=1 if campus==181907001& rated_year ==2000; qui replace sample=1 if campus==29901001& rated_year ==2002; qui replace sample=1 if campus==62904001& rated_year ==2004; qui replace sample=1 if campus==234902001& rated_year ==2000; qui replace sample=1 if campus==205903001& rated_year ==2005; qui replace sample=1 if campus==177902001& rated_year ==1999; qui replace sample=1 if campus==15904001& rated_year ==2004; qui replace sample=1 if campus==108907001& rated_year ==2002; qui replace sample=1 if campus==56901001& rated_year ==2008; qui replace sample=1 if campus==101912012& rated_year ==2008; qui replace sample=1 if campus==230906001& rated_year ==2001; qui replace sample=1 if campus==245903001& rated_year ==2001; qui replace sample=1 if campus==57905017& rated_year ==2000; qui replace sample=1 if campus==121906001& rated_year ==1998; qui replace sample=1 if campus==30906001& rated_year ==2001; qui replace sample=1 if campus==123907005& rated_year ==1998; qui replace sample=1 if campus==123907005& rated_year ==1996; qui replace sample=1 if campus==123907003& rated_year ==1999; qui replace sample=1 if campus==123907003& rated_year ==1995; qui replace sample=1 if campus==123907003& rated_year ==1994; qui replace sample=1 if campus==57905001& rated_year ==2003; qui replace sample=1 if campus==206901001& rated_year ==2006; qui replace sample=1 if campus==123907002& rated_year ==2000; qui replace sample=1 if campus==57912003& rated_year ==2006; qui replace sample=1 if campus==105905001& rated_year ==1998; qui replace sample=1 if campus==31903001& rated_year ==2003; qui replace sample=1 if campus==95905001& rated_year ==2000; qui replace sample=1 if campus==81905002& rated_year ==1999; qui replace sample=1 if campus==123907001& rated_year ==2002; qui replace sample=1 if campus==139905001& rated_year ==1997; qui replace sample=1 if campus==71903001& rated_year ==2005; qui replace sample=1 if campus==15915005& rated_year ==1996; qui replace sample=1 if campus==165902001& rated_year ==1995; qui replace sample=1 if campus==130901001& rated_year ==1999; qui replace sample=1 if campus==92902002& rated_year ==1999; qui replace sample=1 if campus==228903001& rated_year ==1997; qui replace sample=1 if campus==75902001& rated_year ==2007; qui replace sample=1 if campus==116908001& rated_year ==2004; qui replace sample=1 if campus==31901007& rated_year ==1997; qui replace sample=1 if campus==31901007& rated_year ==1999; qui replace sample=1 if campus==108907001& rated_year ==2008; qui replace sample=1 if campus==89901001& rated_year ==2006; qui replace sample=1 if campus==66901001& rated_year ==2003; qui replace sample=1 if campus==153903001& rated_year ==2000; qui replace sample=1 if campus==15910003& rated_year ==1996; qui replace sample=1 if campus==181907001& rated_year ==2002; qui replace sample=1 if campus==45903001& rated_year ==1996; qui replace sample=1 if campus==61901003& rated_year ==2005; qui replace sample=1 if campus==220902001& rated_year ==2005; qui replace sample=1 if campus==184908001& rated_year ==2007; qui replace sample=1 if campus==191901001& rated_year ==2006; qui replace sample=1 if campus==107910001& rated_year ==2004; qui replace sample=1 if campus==178903001& rated_year ==2004; qui replace sample=1 if campus==210901001& rated_year ==1995; qui replace sample=1 if campus==57905013& rated_year ==1994; qui replace sample=1 if campus==15910003& rated_year ==1999; qui replace sample=1 if campus==79907002& rated_year ==1998; qui replace sample=1 if campus==163901001& rated_year ==2007; qui replace sample=1 if campus==186902001& rated_year ==2001; qui replace sample=1 if campus==181906001& rated_year ==1994; qui replace sample=1 if campus==84904001& rated_year ==1994; qui replace sample=1 if campus==234903001& rated_year ==2004; qui replace sample=1 if campus==54903001& rated_year ==2003; qui replace sample=1 if campus==220905001& rated_year ==2000; qui replace sample=1 if campus==179901001& rated_year ==2000; qui replace sample=1 if campus==34907001& rated_year ==2005; qui replace sample=1 if campus==102902001& rated_year ==2006; qui replace sample=1 if campus==101912033& rated_year ==1998; qui replace sample=1 if campus==45905002& rated_year ==1997; qui replace sample=1 if campus==234904001& rated_year ==2006; qui replace sample=1 if campus==51901001& rated_year ==2006; qui replace sample=1 if campus==69902001& rated_year ==1999; qui replace sample=1 if campus==70905002& rated_year ==2003; qui replace sample=1 if campus==250902001& rated_year ==2005; qui replace sample=1 if campus==49907001& rated_year ==2004; qui replace sample=1 if campus==188903001& rated_year ==2005; qui replace sample=1 if campus==43904001& rated_year ==1996; qui replace sample=1 if campus==218901001& rated_year ==1995; qui replace sample=1 if campus==114901001& rated_year ==1997; qui replace sample=1 if campus==18901001& rated_year ==1994; qui replace sample=1 if campus==161909001& rated_year ==1997; qui replace sample=1 if campus==15901001& rated_year ==1997; qui replace sample=1 if campus==63903001& rated_year ==1994; qui replace sample=1 if campus==188901001& rated_year ==1999; qui replace sample=1 if campus==121906001& rated_year ==2000; qui replace sample=1 if campus==121906001& rated_year ==1994; qui replace sample=1 if campus==71905004& rated_year ==1999; qui replace sample=1 if campus==127903001& rated_year ==2004; qui replace sample=1 if campus==121905001& rated_year ==2000; qui replace sample=1 if campus==57905038& rated_year ==2007; qui replace sample=1 if campus==31913001& rated_year ==2002; qui replace sample=1 if campus==50902001& rated_year ==2005; qui replace sample=1 if campus==220902002& rated_year ==2005; qui replace sample=1 if campus==57905023& rated_year ==2007; qui replace sample=1 if campus==116909001& rated_year ==1996; qui replace sample=1 if campus==83903001& rated_year ==1996; qui replace sample=1 if campus==220905011& rated_year ==2007; qui replace sample=1 if campus==126901001& rated_year ==2003; qui replace sample=1 if campus==73905001& rated_year ==1994; qui replace sample=1 if campus==20908001& rated_year ==2000; qui replace sample=1 if campus==141902001& rated_year ==2003; qui replace sample=1 if campus==112908001& rated_year ==1996; qui replace sample=1 if campus==161918001& rated_year ==1997; qui replace sample=1 if campus==121904001& rated_year ==2006; qui replace sample=1 if campus==152910001& rated_year ==1998; qui replace sample=1 if campus==220902002& rated_year ==1995; qui replace sample=1 if campus==36902001& rated_year ==2000; qui replace sample=1 if campus==73905001& rated_year ==2005; qui replace sample=1 if campus==71902004& rated_year ==1994; qui replace sample=1 if campus==243905001& rated_year ==1997; qui replace sample=1 if campus==15915007& rated_year ==1999; qui replace sample=1 if campus==129904001& rated_year ==1995; qui replace sample=1 if campus==121903001& rated_year ==2004; qui replace sample=1 if campus==121903001& rated_year ==2000; qui replace sample=1 if campus==121903001& rated_year ==1995; qui replace sample=1 if campus==116916001& rated_year ==1994; qui replace sample=1 if campus==101912016& rated_year ==2007; qui replace sample=1 if campus==43901001& rated_year ==1996; qui replace sample=1 if campus==84910003& rated_year ==1997; qui replace sample=1 if campus==85902001& rated_year ==2004; qui replace sample=1 if campus==204904001& rated_year ==2007; qui replace sample=1 if campus==57905037& rated_year ==1994; qui replace sample=1 if campus==31906001& rated_year ==1996; qui replace sample=1 if campus==47902001& rated_year ==2003; qui replace sample=1 if campus==120905001& rated_year ==2005; qui replace sample=1 if campus==158905001& rated_year ==1995; qui replace sample=1 if campus==120905001& rated_year ==2003; qui replace sample=1 if campus==101906001& rated_year ==1994; qui replace sample=1 if campus==120905001& rated_year ==2000; qui replace sample=1 if campus==57909003& rated_year ==2001; qui replace sample=1 if campus==154901001& rated_year ==1994; qui replace sample=1 if campus==120905001& rated_year ==1995; qui replace sample=1 if campus==129910001& rated_year ==1997; qui replace sample=1 if campus==67903001& rated_year ==2000; qui replace sample=1 if campus==108906006& rated_year ==2007; qui replace sample=1 if campus==49905001& rated_year ==2004; qui replace sample=1 if campus==71902002& rated_year ==2002; qui replace sample=1 if campus==239901001& rated_year ==2000; qui replace sample=1 if campus==185901001& rated_year ==2005; qui replace sample=1 if campus==185903001& rated_year ==2005; qui replace sample=1 if campus==251901001& rated_year ==1995; qui replace sample=1 if campus==107910001& rated_year ==1997; qui replace sample=1 if campus==120901001& rated_year ==2004; qui replace sample=1 if campus==84909001& rated_year ==2000; qui replace sample=1 if campus==71905014& rated_year ==2003; qui replace sample=1 if campus==101920006& rated_year ==1994; qui replace sample=1 if campus==215901001& rated_year ==1999; qui replace sample=1 if campus==243902001& rated_year ==1997; qui replace sample=1 if campus==37907002& rated_year ==1998; qui replace sample=1 if campus==15906001& rated_year ==2000; qui replace sample=1 if campus==110907001& rated_year ==2005; qui replace sample=1 if campus==178904004& rated_year ==2004; qui replace sample=1 if campus==206901001& rated_year ==2000; qui replace sample=1 if campus==251901001& rated_year ==1999; qui replace sample=1 if campus==67902001& rated_year ==2008; qui replace sample=1 if campus==251901001& rated_year ==2001; qui replace sample=1 if campus==237904002& rated_year ==2003; qui replace sample=1 if campus==227910001& rated_year ==2000; qui replace sample=1 if campus==80901001& rated_year ==2002; qui replace sample=1 if campus==146905001& rated_year ==2005; qui replace sample=1 if campus==10901001& rated_year ==2004; qui replace sample=1 if campus==57905032& rated_year ==1995; qui replace sample=1 if campus==233901001& rated_year ==2002; qui replace sample=1 if campus==201910002& rated_year ==2000; qui replace sample=1 if campus==181907001& rated_year ==1998; qui replace sample=1 if campus==183902001& rated_year ==2000; qui replace sample=1 if campus==3904001& rated_year ==2007; qui replace sample=1 if campus==64903001& rated_year ==1996; qui replace sample=1 if campus==15908001& rated_year ==2005; qui replace sample=1 if campus==207901001& rated_year ==1996; qui replace sample=1 if campus==225902001& rated_year ==2006; qui replace sample=1 if campus==233901002& rated_year ==2005; qui replace sample=1 if campus==100904001& rated_year ==1999; qui replace sample=1 if campus==1907001& rated_year ==2005; qui replace sample=1 if campus==119902001& rated_year ==1996; qui replace sample=1 if campus==119902001& rated_year ==1995; qui replace sample=1 if campus==119902001& rated_year ==1994; qui replace sample=1 if campus==57905026& rated_year ==1999; qui replace sample=1 if campus==84911001& rated_year ==2006; qui replace sample=1 if campus==81905002& rated_year ==1996; qui replace sample=1 if campus==101912034& rated_year ==2001; qui replace sample=1 if campus==20906002& rated_year ==1997; qui replace sample=1 if campus==70910001& rated_year ==2002; qui replace sample=1 if campus==161916001& rated_year ==1998; qui replace sample=1 if campus==57914003& rated_year ==1996; qui replace sample=1 if campus==59901001& rated_year ==2002; qui replace sample=1 if campus==84908001& rated_year ==2006; qui replace sample=1 if campus==241904001& rated_year ==2003; qui replace sample=1 if campus==188901005& rated_year ==2003; qui replace sample=1 if campus==161920001& rated_year ==2008; qui replace sample=1 if campus==229905001& rated_year ==2003; qui replace sample=1 if campus==250902001& rated_year ==2008; qui replace sample=1 if campus==101920005& rated_year ==2001; qui replace sample=1 if campus==125902001& rated_year ==1999; qui replace sample=1 if campus==163904001& rated_year ==2003; qui replace sample=1 if campus==227901004& rated_year ==2004; qui replace sample=1 if campus==117904001& rated_year ==1996; qui replace sample=1 if campus==31903003& rated_year ==1994; qui replace sample=1 if campus==182903001& rated_year ==2002; qui replace sample=1 if campus==101912002& rated_year ==2000; qui replace sample=1 if campus==146902002& rated_year ==1999; qui replace sample=1 if campus==61911001& rated_year ==2006; qui replace sample=1 if campus==57905036& rated_year ==2003; qui replace sample=1 if campus==9901001& rated_year ==2008; qui replace sample=1 if campus==127904001& rated_year ==2005; qui replace sample=1 if campus==26903002& rated_year ==2007; qui replace sample=1 if campus==249906001& rated_year ==2003; qui replace sample=1 if campus==117903001& rated_year ==1995; qui replace sample=1 if campus==202905002& rated_year ==2008; qui replace sample=1 if campus==121904001& rated_year ==2003; qui replace sample=1 if campus==19912001& rated_year ==2001; qui replace sample=1 if campus==117901001& rated_year ==2008; qui replace sample=1 if campus==117901001& rated_year ==2002; qui replace sample=1 if campus==125905001& rated_year ==1994; qui replace sample=1 if campus==117901001& rated_year ==1999; qui replace sample=1 if campus==117901001& rated_year ==1998; qui replace sample=1 if campus==130902001& rated_year ==1998; qui replace sample=1 if campus==82903001& rated_year ==1995; qui replace sample=1 if campus==161918001& rated_year ==1999; qui replace sample=1 if campus==15910004& rated_year ==2005; qui replace sample=1 if campus==57912003& rated_year ==1994; qui replace sample=1 if campus==220905014& rated_year ==2008; qui replace sample=1 if campus==116916001& rated_year ==2003; qui replace sample=1 if campus==108902001& rated_year ==1997; qui replace sample=1 if campus==116916001& rated_year ==1998; qui replace sample=1 if campus==57910003& rated_year ==1998; qui replace sample=1 if campus==146906001& rated_year ==2006; qui replace sample=1 if campus==251902001& rated_year ==1995; qui replace sample=1 if campus==31916005& rated_year ==2001; qui replace sample=1 if campus==71902011& rated_year ==2002; qui replace sample=1 if campus==57914004& rated_year ==1996; qui replace sample=1 if campus==71902002& rated_year ==2001; qui replace sample=1 if campus==43903001& rated_year ==2003; qui replace sample=1 if campus==227901005& rated_year ==1996; qui replace sample=1 if campus==116915001& rated_year ==1994; qui replace sample=1 if campus==227901005& rated_year ==2004; qui replace sample=1 if campus==220902001& rated_year ==1999; qui replace sample=1 if campus==36901001& rated_year ==2008; qui replace sample=1 if campus==101912024& rated_year ==2005; qui replace sample=1 if campus==126911001& rated_year ==1997; qui replace sample=1 if campus==214903001& rated_year ==2001; qui replace sample=1 if campus==33904001& rated_year ==2004; qui replace sample=1 if campus==116909001& rated_year ==2004; qui replace sample=1 if campus==39903001& rated_year ==1994; qui replace sample=1 if campus==84902001& rated_year ==2000; qui replace sample=1 if campus==246902001& rated_year ==1999; qui replace sample=1 if campus==84902001& rated_year ==2007; qui replace sample=1 if campus==253901001& rated_year ==2008; qui replace sample=1 if campus==101909002& rated_year ==2007; qui replace sample=1 if campus==15915004& rated_year ==1994; qui replace sample=1 if campus==14909002& rated_year ==1999; qui replace sample=1 if campus==120905001& rated_year ==2001; qui replace sample=1 if campus==227901002& rated_year ==2005; qui replace sample=1 if campus==101913001& rated_year ==2002; qui replace sample=1 if campus==116908001& rated_year ==2000; qui replace sample=1 if campus==79907001& rated_year ==1994; qui replace sample=1 if campus==43910005& rated_year ==1996; qui replace sample=1 if campus==212904002& rated_year ==2003; qui replace sample=1 if campus==116906001& rated_year ==2007; qui replace sample=1 if campus==43901001& rated_year ==2003; qui replace sample=1 if campus==246908001& rated_year ==2007; qui replace sample=1 if campus==18901001& rated_year ==2002; qui replace sample=1 if campus==116906001& rated_year ==2001; qui replace sample=1 if campus==43902001& rated_year ==2002; qui replace sample=1 if campus==15907004& rated_year ==2002; qui replace sample=1 if campus==116906001& rated_year ==1995; qui replace sample=1 if campus==220905015& rated_year ==1998; qui replace sample=1 if campus==57905014& rated_year ==2008; qui replace sample=1 if campus==50902001& rated_year ==1999; qui replace sample=1 if campus==15913001& rated_year ==2001; qui replace sample=1 if campus==100903002& rated_year ==2001; qui replace sample=1 if campus==166901002& rated_year ==2005; qui replace sample=1 if campus==194904002& rated_year ==2002; qui replace sample=1 if campus==101915001& rated_year ==1997; qui replace sample=1 if campus==107902001& rated_year ==2007; qui replace sample=1 if campus==45905002& rated_year ==1998; qui replace sample=1 if campus==31916005& rated_year ==2003; qui replace sample=1 if campus==101912014& rated_year ==2004; qui replace sample=1 if campus==43910003& rated_year ==1995; qui replace sample=1 if campus==91906002& rated_year ==1998; qui replace sample=1 if campus==227901006& rated_year ==2007; qui replace sample=1 if campus==49907001& rated_year ==1994; qui replace sample=1 if campus==61908001& rated_year ==1997; qui replace sample=1 if campus==233901002& rated_year ==1995; qui replace sample=1 if campus==71902010& rated_year ==1994; qui replace sample=1 if campus==182903001& rated_year ==1999; qui replace sample=1 if campus==49905001& rated_year ==2008; qui replace sample=1 if campus==231901001& rated_year ==1995; qui replace sample=1 if campus==112901002& rated_year ==1995; qui replace sample=1 if campus==172902001& rated_year ==2007; qui replace sample=1 if campus==152903001& rated_year ==2005; qui replace sample=1 if campus==187901001& rated_year ==2007; qui replace sample=1 if campus==71902009& rated_year ==1996; qui replace sample=1 if campus==174902001& rated_year ==2000; qui replace sample=1 if campus==43901001& rated_year ==1994; qui replace sample=1 if campus==43905001& rated_year ==2002; qui replace sample=1 if campus==134901001& rated_year ==2003; qui replace sample=1 if campus==212906001& rated_year ==1999; qui replace sample=1 if campus==220912001& rated_year ==1997; qui replace sample=1 if campus==7902001& rated_year ==1995; qui replace sample=1 if campus==116903001& rated_year ==2008; qui replace sample=1 if campus==127901001& rated_year ==1999; qui replace sample=1 if campus==101902001& rated_year ==1997; qui replace sample=1 if campus==113902002& rated_year ==1996; qui replace sample=1 if campus==180901001& rated_year ==1995; qui replace sample=1 if campus==19907002& rated_year ==1999; qui replace sample=1 if campus==100908001& rated_year ==2003; qui replace sample=1 if campus==71905003& rated_year ==2008; qui replace sample=1 if campus==101903001& rated_year ==2006; qui replace sample=1 if campus==84909001& rated_year ==2004; qui replace sample=1 if campus==101912024& rated_year ==1996; qui replace sample=1 if campus==153904001& rated_year ==2001; qui replace sample=1 if campus==116902001& rated_year ==1999; qui replace sample=1 if campus==230903001& rated_year ==2005; qui replace sample=1 if campus==106901001& rated_year ==1998; qui replace sample=1 if campus==3906001& rated_year ==1996; qui replace sample=1 if campus==57906001& rated_year ==2005; qui replace sample=1 if campus==116901001& rated_year ==2004; qui replace sample=1 if campus==15906001& rated_year ==2003; qui replace sample=1 if campus==116915001& rated_year ==2004; qui replace sample=1 if campus==142901001& rated_year ==1995; qui replace sample=1 if campus==91918001& rated_year ==1998; qui replace sample=1 if campus==102904002& rated_year ==2008; qui replace sample=1 if campus==25902001& rated_year ==2001; qui replace sample=1 if campus==71905004& rated_year ==1997; qui replace sample=1 if campus==101903002& rated_year ==2001; qui replace sample=1 if campus==143901001& rated_year ==1994; qui replace sample=1 if campus==101912005& rated_year ==1995; qui replace sample=1 if campus==220920001& rated_year ==2006; qui replace sample=1 if campus==101912008& rated_year ==2008; qui replace sample=1 if campus==147903002& rated_year ==1998; qui replace sample=1 if campus==67903001& rated_year ==1998; qui replace sample=1 if campus==95901001& rated_year ==1994; qui replace sample=1 if campus==133901001& rated_year ==1994; qui replace sample=1 if campus==221901002& rated_year ==1998; qui replace sample=1 if campus==57905008& rated_year ==1997; qui replace sample=1 if campus==210901001& rated_year ==2002; qui replace sample=1 if campus==15908002& rated_year ==1995; qui replace sample=1 if campus==71902010& rated_year ==1999; qui replace sample=1 if campus==70907001& rated_year ==2001; qui replace sample=1 if campus==247906001& rated_year ==2007; qui replace sample=1 if campus==101912012& rated_year ==2003; qui replace sample=1 if campus==108909001& rated_year ==2006; qui replace sample=1 if campus==246911001& rated_year ==1998; qui replace sample=1 if campus==92906002& rated_year ==1996; qui replace sample=1 if campus==57905013& rated_year ==2004; qui replace sample=1 if campus==114904001& rated_year ==1997; qui replace sample=1 if campus==101920003& rated_year ==2000; qui replace sample=1 if campus==114904001& rated_year ==1994; qui replace sample=1 if campus==161920001& rated_year ==1994; qui replace sample=1 if campus==80901001& rated_year ==1998; qui replace sample=1 if campus==101919002& rated_year ==2007; qui replace sample=1 if campus==129903001& rated_year ==2005; qui replace sample=1 if campus==212904002& rated_year ==1998; qui replace sample=1 if campus==26903002& rated_year ==1994; qui replace sample=1 if campus==40902001& rated_year ==2005; qui replace sample=1 if campus==34907001& rated_year ==2001; qui replace sample=1 if campus==246908001& rated_year ==1997; qui replace sample=1 if campus==116902001& rated_year ==1995; qui replace sample=1 if campus==114901001& rated_year ==2000; qui replace sample=1 if campus==114901001& rated_year ==1999; qui replace sample=1 if campus==114901001& rated_year ==1998; qui replace sample=1 if campus==114901001& rated_year ==1994; qui replace sample=1 if campus==113906001& rated_year ==2003; qui replace sample=1 if campus==139905001& rated_year ==2002; qui replace sample=1 if campus==204904001& rated_year ==2003; qui replace sample=1 if campus==3905001& rated_year ==1996; qui replace sample=1 if campus==113906001& rated_year ==1997; qui replace sample=1 if campus==20908001& rated_year ==2002; qui replace sample=1 if campus==181906001& rated_year ==1999; qui replace sample=1 if campus==113905001& rated_year ==2003; qui replace sample=1 if campus==101912011& rated_year ==2001; qui replace sample=1 if campus==15912001& rated_year ==2008; qui replace sample=1 if campus==130901001& rated_year ==2007; qui replace sample=1 if campus==30902001& rated_year ==1997; qui replace sample=1 if campus==252901001& rated_year ==2006; qui replace sample=1 if campus==161903001& rated_year ==1996; qui replace sample=1 if campus==43910005& rated_year ==2004; qui replace sample=1 if campus==84910003& rated_year ==1998; qui replace sample=1 if campus==100908001& rated_year ==2002; qui replace sample=1 if campus==158905001& rated_year ==1996; qui replace sample=1 if campus==227901002& rated_year ==2007; qui replace sample=1 if campus==232902001& rated_year ==2003; qui replace sample=1 if campus==247904001& rated_year ==2006; qui replace sample=1 if campus==239903001& rated_year ==1995; qui replace sample=1 if campus==15915007& rated_year ==2000; qui replace sample=1 if campus==113903002& rated_year ==1994; qui replace sample=1 if campus==101912020& rated_year ==2004; qui replace sample=1 if campus==202903001& rated_year ==1994; qui replace sample=1 if campus==161914002& rated_year ==2007; qui replace sample=1 if campus==101911002& rated_year ==2005; qui replace sample=1 if campus==158901001& rated_year ==2003; qui replace sample=1 if campus==113902002& rated_year ==2001; qui replace sample=1 if campus==7902001& rated_year ==2008; qui replace sample=1 if campus==3906001& rated_year ==2007; qui replace sample=1 if campus==18901001& rated_year ==1996; qui replace sample=1 if campus==16901001& rated_year ==2005; qui replace sample=1 if campus==194904002& rated_year ==2004; qui replace sample=1 if campus==152903001& rated_year ==2007; qui replace sample=1 if campus==34905002& rated_year ==2000; qui replace sample=1 if campus==101902004& rated_year ==2006; qui replace sample=1 if campus==165901044& rated_year ==1997; qui replace sample=1 if campus==108910001& rated_year ==2006; qui replace sample=1 if campus==71902005& rated_year ==2004; qui replace sample=1 if campus==36903001& rated_year ==1996; qui replace sample=1 if campus==101911003& rated_year ==2002; qui replace sample=1 if campus==71902011& rated_year ==1994; qui replace sample=1 if campus==210902001& rated_year ==2004; qui replace sample=1 if campus==21902001& rated_year ==2003; qui replace sample=1 if campus==97902001& rated_year ==2005; qui replace sample=1 if campus==134901001& rated_year ==2001; qui replace sample=1 if campus==43905001& rated_year ==2000; qui replace sample=1 if campus==3906001& rated_year ==1997; qui replace sample=1 if campus==221901002& rated_year ==1995; qui replace sample=1 if campus==223901001& rated_year ==2000; qui replace sample=1 if campus==158905001& rated_year ==2000; qui replace sample=1 if campus==117903001& rated_year ==2000; qui replace sample=1 if campus==234903001& rated_year ==2003; qui replace sample=1 if campus==15907007& rated_year ==2008; qui replace sample=1 if campus==31916003& rated_year ==2000; qui replace sample=1 if campus==71905003& rated_year ==1997; qui replace sample=1 if campus==31903002& rated_year ==2001; qui replace sample=1 if campus==171901001& rated_year ==2000; qui replace sample=1 if campus==36902001& rated_year ==2003; qui replace sample=1 if campus==71904001& rated_year ==1999; qui replace sample=1 if campus==60902001& rated_year ==1995; qui replace sample=1 if campus==57905006& rated_year ==1997; qui replace sample=1 if campus==181905001& rated_year ==1994; qui replace sample=1 if campus==94901001& rated_year ==1996; qui replace sample=1 if campus==101912017& rated_year ==2004; qui replace sample=1 if campus==3905001& rated_year ==2000; qui replace sample=1 if campus==169901001& rated_year ==2003; qui replace sample=1 if campus==133904001& rated_year ==2003; qui replace sample=1 if campus==251902001& rated_year ==2008; qui replace sample=1 if campus==20904001& rated_year ==2004; qui replace sample=1 if campus==15907003& rated_year ==1994; qui replace sample=1 if campus==161916001& rated_year ==2004; qui replace sample=1 if campus==94904001& rated_year ==2007; qui replace sample=1 if campus==71905007& rated_year ==2002; qui replace sample=1 if campus==91901001& rated_year ==1996; qui replace sample=1 if campus==123907003& rated_year ==2001; qui replace sample=1 if campus==21902001& rated_year ==2008; qui replace sample=1 if campus==27904001& rated_year ==2008; qui replace sample=1 if campus==112901002& rated_year ==2002; qui replace sample=1 if campus==112901002& rated_year ==1997; qui replace sample=1 if campus==15907005& rated_year ==2001; qui replace sample=1 if campus==14908001& rated_year ==2005; qui replace sample=1 if campus==15904001& rated_year ==1998; qui replace sample=1 if campus==220907001& rated_year ==2003; qui replace sample=1 if campus==71907001& rated_year ==2005; qui replace sample=1 if campus==188901002& rated_year ==2001; qui replace sample=1 if campus==57905002& rated_year ==1997; qui replace sample=1 if campus==133903001& rated_year ==1997; qui replace sample=1 if campus==61908001& rated_year ==2002; qui replace sample=1 if campus==158906002& rated_year ==2003; qui replace sample=1 if campus==130902001& rated_year ==1996; qui replace sample=1 if campus==108911001& rated_year ==2005; qui replace sample=1 if campus==19905001& rated_year ==1998; qui replace sample=1 if campus==141901001& rated_year ==1994; qui replace sample=1 if campus==71902008& rated_year ==2004; qui replace sample=1 if campus==125902001& rated_year ==2005; qui replace sample=1 if campus==226903002& rated_year ==2000; qui replace sample=1 if campus==180902001& rated_year ==1997; qui replace sample=1 if campus==21901001& rated_year ==1994; qui replace sample=1 if campus==36901001& rated_year ==2005; qui replace sample=1 if campus==14905001& rated_year ==1994; qui replace sample=1 if campus==83903001& rated_year ==2007; qui replace sample=1 if campus==163908001& rated_year ==1999; qui replace sample=1 if campus==176903001& rated_year ==1994; qui replace sample=1 if campus==47901001& rated_year ==2005; qui replace sample=1 if campus==178904003& rated_year ==1994; qui replace sample=1 if campus==15904002& rated_year ==1999; qui replace sample=1 if campus==81904001& rated_year ==2002; qui replace sample=1 if campus==15907001& rated_year ==1996; qui replace sample=1 if campus==31901007& rated_year ==1994; qui replace sample=1 if campus==49903001& rated_year ==1995; qui replace sample=1 if campus==247904001& rated_year ==1997; qui replace sample=1 if campus==205907001& rated_year ==2003; qui replace sample=1 if campus==178908001& rated_year ==1995; qui replace sample=1 if campus==249905001& rated_year ==1998; qui replace sample=1 if campus==31901002& rated_year ==2005; qui replace sample=1 if campus==18901001& rated_year ==1999; qui replace sample=1 if campus==101913002& rated_year ==2008; qui replace sample=1 if campus==187904001& rated_year ==2004; qui replace sample=1 if campus==110907001& rated_year ==2008; qui replace sample=1 if campus==110907001& rated_year ==2007; qui replace sample=1 if campus==89901001& rated_year ==2007; qui replace sample=1 if campus==84911001& rated_year ==1995; qui replace sample=1 if campus==210903002& rated_year ==2004; qui replace sample=1 if campus==101902004& rated_year ==2008; qui replace sample=1 if campus==125903001& rated_year ==2001; qui replace sample=1 if campus==185903001& rated_year ==1997; qui replace sample=1 if campus==110907001& rated_year ==1994; qui replace sample=1 if campus==93901001& rated_year ==1997; qui replace sample=1 if campus==161910001& rated_year ==1996; qui replace sample=1 if campus==1903001& rated_year ==1997; qui replace sample=1 if campus==75902001& rated_year ==1997; qui replace sample=1 if campus==161914003& rated_year ==1999; qui replace sample=1 if campus==178904005& rated_year ==1999; qui replace sample=1 if campus==247901001& rated_year ==2004; qui replace sample=1 if campus==43910007& rated_year ==2008; qui replace sample=1 if campus==9901001& rated_year ==2003; qui replace sample=1 if campus==57905007& rated_year ==2004; qui replace sample=1 if campus==15901001& rated_year ==1996; qui replace sample=1 if campus==195901001& rated_year ==2002; qui replace sample=1 if campus==170902001& rated_year ==1994; qui replace sample=1 if campus==73903001& rated_year ==2006; qui replace sample=1 if campus==136901001& rated_year ==2001; qui replace sample=1 if campus==49907001& rated_year ==2005; qui replace sample=1 if campus==178912001& rated_year ==2006; qui replace sample=1 if campus==161921001& rated_year ==2007; qui replace sample=1 if campus==246909001& rated_year ==1997; qui replace sample=1 if campus==146904001& rated_year ==1997; qui replace sample=1 if campus==101902005& rated_year ==2003; qui replace sample=1 if campus==19902002& rated_year ==2007; qui replace sample=1 if campus==161922001& rated_year ==2004; qui replace sample=1 if campus==15910003& rated_year ==1995; qui replace sample=1 if campus==227913001& rated_year ==1994; qui replace sample=1 if campus==200901001& rated_year ==2005; qui replace sample=1 if campus==22901001& rated_year ==1995; qui replace sample=1 if campus==250905001& rated_year ==1996; qui replace sample=1 if campus==31901002& rated_year ==1999; qui replace sample=1 if campus==64903001& rated_year ==1994; qui replace sample=1 if campus==232902001& rated_year ==1996; qui replace sample=1 if campus==122901002& rated_year ==1996; qui replace sample=1 if campus==85902001& rated_year ==2006; qui replace sample=1 if campus==15910002& rated_year ==2006; qui replace sample=1 if campus==30902001& rated_year ==2000; qui replace sample=1 if campus==175904001& rated_year ==1997; qui replace sample=1 if campus==102902001& rated_year ==2003; qui replace sample=1 if campus==185903001& rated_year ==2002; qui replace sample=1 if campus==250903001& rated_year ==2005; qui replace sample=1 if campus==146902002& rated_year ==1994; qui replace sample=1 if campus==241906001& rated_year ==2000; qui replace sample=1 if campus==227901038& rated_year ==1994; qui replace sample=1 if campus==43910007& rated_year ==2003; qui replace sample=1 if campus==247903001& rated_year ==2001; qui replace sample=1 if campus==74917001& rated_year ==1998; qui replace sample=1 if campus==174906001& rated_year ==1998; qui replace sample=1 if campus==66902001& rated_year ==2003; qui replace sample=1 if campus==15910002& rated_year ==2008; qui replace sample=1 if campus==57910003& rated_year ==2003; qui replace sample=1 if campus==205902001& rated_year ==1998; qui replace sample=1 if campus==241903001& rated_year ==1995; qui replace sample=1 if campus==61908001& rated_year ==1999; qui replace sample=1 if campus==57909005& rated_year ==2003; qui replace sample=1 if campus==210902001& rated_year ==1998; qui replace sample=1 if campus==109907001& rated_year ==1996; qui replace sample=1 if campus==101902002& rated_year ==2000; qui replace sample=1 if campus==71903001& rated_year ==2001; qui replace sample=1 if campus==108910001& rated_year ==2007; qui replace sample=1 if campus==108909003& rated_year ==1999; qui replace sample=1 if campus==79901001& rated_year ==2004; qui replace sample=1 if campus==170906001& rated_year ==2002; qui replace sample=1 if campus==239903001& rated_year ==2007; qui replace sample=1 if campus==74903001& rated_year ==1996; qui replace sample=1 if campus==178904005& rated_year ==1995; qui replace sample=1 if campus==146907001& rated_year ==1997; qui replace sample=1 if campus==220904001& rated_year ==2000; qui replace sample=1 if campus==137901001& rated_year ==1994; qui replace sample=1 if campus==102905001& rated_year ==2002; qui replace sample=1 if campus==15915005& rated_year ==1999; qui replace sample=1 if campus==109911001& rated_year ==1997; qui replace sample=1 if campus==70915001& rated_year ==1996; qui replace sample=1 if campus==181905001& rated_year ==1996; qui replace sample=1 if campus==109907001& rated_year ==2008; qui replace sample=1 if campus==109907001& rated_year ==2007; qui replace sample=1 if campus==109907001& rated_year ==2006; qui replace sample=1 if campus==109907001& rated_year ==2003; qui replace sample=1 if campus==117901001& rated_year ==1995; qui replace sample=1 if campus==109907001& rated_year ==2001; qui replace sample=1 if campus==239903001& rated_year ==2005; qui replace sample=1 if campus==252903001& rated_year ==2002; qui replace sample=1 if campus==101911002& rated_year ==1999; qui replace sample=1 if campus==9901001& rated_year ==2002; qui replace sample=1 if campus==14909002& rated_year ==2001; qui replace sample=1 if campus==58906001& rated_year ==2000; qui replace sample=1 if campus==101911003& rated_year ==1997; qui replace sample=1 if campus==71902010& rated_year ==2002; qui replace sample=1 if campus==91903001& rated_year ==2002; qui replace sample=1 if campus==252903001& rated_year ==2004; qui replace sample=1 if campus==163903001& rated_year ==1998; qui replace sample=1 if campus==123908001& rated_year ==2006; qui replace sample=1 if campus==123914001& rated_year ==1994; qui replace sample=1 if campus==126911001& rated_year ==1998; qui replace sample=1 if campus==5902001& rated_year ==2004; qui replace sample=1 if campus==57909005& rated_year ==2005; qui replace sample=1 if campus==51901001& rated_year ==1998; qui replace sample=1 if campus==109904001& rated_year ==2002; qui replace sample=1 if campus==109904001& rated_year ==2001; qui replace sample=1 if campus==109904001& rated_year ==2000; qui replace sample=1 if campus==101917002& rated_year ==1994; qui replace sample=1 if campus==121903001& rated_year ==2003; qui replace sample=1 if campus==198903001& rated_year ==2003; qui replace sample=1 if campus==36903001& rated_year ==2007; qui replace sample=1 if campus==1909001& rated_year ==2005; qui replace sample=1 if campus==25902001& rated_year ==2006; qui replace sample=1 if campus==3907001& rated_year ==1998; qui replace sample=1 if campus==79907006& rated_year ==1996; qui replace sample=1 if campus==109905001& rated_year ==2003; qui replace sample=1 if campus==220905016& rated_year ==2006; qui replace sample=1 if campus==7904001& rated_year ==1994; qui replace sample=1 if campus==31912001& rated_year ==2006; qui replace sample=1 if campus==153904001& rated_year ==2008; qui replace sample=1 if campus==161903001& rated_year ==2005; qui replace sample=1 if campus==154901001& rated_year ==2004; qui replace sample=1 if campus==253901001& rated_year ==1999; qui replace sample=1 if campus==170907001& rated_year ==2001; qui replace sample=1 if campus==108916001& rated_year ==2008; qui replace sample=1 if campus==253901001& rated_year ==1997; qui replace sample=1 if campus==108916001& rated_year ==2000; qui replace sample=1 if campus==34903001& rated_year ==2003; qui replace sample=1 if campus==163901001& rated_year ==2001; qui replace sample=1 if campus==36903001& rated_year ==2002; qui replace sample=1 if campus==13901001& rated_year ==2002; qui replace sample=1 if campus==68901002& rated_year ==2001; qui replace sample=1 if campus==20907001& rated_year ==2001; qui replace sample=1 if campus==220905015& rated_year ==2006; qui replace sample=1 if campus==20902001& rated_year ==1997; qui replace sample=1 if campus==246909001& rated_year ==2000; qui replace sample=1 if campus==15910002& rated_year ==2007; qui replace sample=1 if campus==108914001& rated_year ==1997; qui replace sample=1 if campus==108913001& rated_year ==1997; qui replace sample=1 if campus==254901001& rated_year ==1994; qui replace sample=1 if campus==91905001& rated_year ==1995; qui replace sample=1 if campus==70907001& rated_year ==1994; qui replace sample=1 if campus==220902002& rated_year ==1994; qui replace sample=1 if campus==93904002& rated_year ==1995; qui replace sample=1 if campus==123910001& rated_year ==2001; qui replace sample=1 if campus==129905001& rated_year ==1999; qui replace sample=1 if campus==205901001& rated_year ==2007; qui replace sample=1 if campus==43910004& rated_year ==1995; qui replace sample=1 if campus==108909003& rated_year ==2001; qui replace sample=1 if campus==57920002& rated_year ==1995; qui replace sample=1 if campus==201908001& rated_year ==2006; qui replace sample=1 if campus==108908001& rated_year ==2006; qui replace sample=1 if campus==178913001& rated_year ==1997; qui replace sample=1 if campus==220908001& rated_year ==2002; qui replace sample=1 if campus==15908001& rated_year ==2000; qui replace sample=1 if campus==101907007& rated_year ==2000; qui replace sample=1 if campus==205906001& rated_year ==1998; qui replace sample=1 if campus==133904001& rated_year ==2004; qui replace sample=1 if campus==188903001& rated_year ==1998; qui replace sample=1 if campus==230902002& rated_year ==1999; qui replace sample=1 if campus==49901001& rated_year ==1995; qui replace sample=1 if campus==108913004& rated_year ==1997; qui replace sample=1 if campus==108913004& rated_year ==1996; qui replace sample=1 if campus==108913004& rated_year ==1994; qui replace sample=1 if campus==126903001& rated_year ==1999; qui replace sample=1 if campus==202903001& rated_year ==1999; qui replace sample=1 if campus==178904005& rated_year ==1997; qui replace sample=1 if campus==246909001& rated_year ==2007; qui replace sample=1 if campus==116909001& rated_year ==2001; qui replace sample=1 if campus==243902001& rated_year ==2003; qui replace sample=1 if campus==108913001& rated_year ==2003; qui replace sample=1 if campus==108913001& rated_year ==2000; qui replace sample=1 if campus==26901001& rated_year ==2005; qui replace sample=1 if campus==42901001& rated_year ==2004; qui replace sample=1 if campus==123910003& rated_year ==1996; qui replace sample=1 if campus==252901001& rated_year ==1999; qui replace sample=1 if campus==205903001& rated_year ==2001; qui replace sample=1 if campus==122901002& rated_year ==1998; qui replace sample=1 if campus==116901001& rated_year ==2000; qui replace sample=1 if campus==161908002& rated_year ==2005; qui replace sample=1 if campus==145902001& rated_year ==1996; qui replace sample=1 if campus==57905025& rated_year ==2008; qui replace sample=1 if campus==250905001& rated_year ==1994; qui replace sample=1 if campus==63903001& rated_year ==1996; qui replace sample=1 if campus==75901001& rated_year ==2004; qui replace sample=1 if campus==57905002& rated_year ==2006; qui replace sample=1 if campus==84904001& rated_year ==2002; qui replace sample=1 if campus==92907001& rated_year ==1998; qui replace sample=1 if campus==71902003& rated_year ==1994; qui replace sample=1 if campus==61902002& rated_year ==2000; qui replace sample=1 if campus==92901001& rated_year ==2000; qui replace sample=1 if campus==56901001& rated_year ==1997; qui replace sample=1 if campus==71902002& rated_year ==2006; qui replace sample=1 if campus==101912020& rated_year ==2005; qui replace sample=1 if campus==108909003& rated_year ==2000; qui replace sample=1 if campus==101917004& rated_year ==2003; qui replace sample=1 if campus==43910007& rated_year ==2002; qui replace sample=1 if campus==57909003& rated_year ==2004; qui replace sample=1 if campus==184908001& rated_year ==1995; qui replace sample=1 if campus==108912001& rated_year ==2008; qui replace sample=1 if campus==108912001& rated_year ==2007; qui replace sample=1 if campus==249905001& rated_year ==2005; qui replace sample=1 if campus==178904001& rated_year ==2003; qui replace sample=1 if campus==254901001& rated_year ==2002; qui replace sample=1 if campus==15917001& rated_year ==1998; qui replace sample=1 if campus==174906001& rated_year ==1995; qui replace sample=1 if campus==28903001& rated_year ==2006; qui replace sample=1 if campus==220905015& rated_year ==2008; qui replace sample=1 if campus==234906001& rated_year ==1999; qui replace sample=1 if campus==120905001& rated_year ==1997; qui replace sample=1 if campus==49901001& rated_year ==2007; qui replace sample=1 if campus==53001001& rated_year ==2002; qui replace sample=1 if campus==71905002& rated_year ==2001; qui replace sample=1 if campus==189902001& rated_year ==1995; qui replace sample=1 if campus==102906001& rated_year ==2001; qui replace sample=1 if campus==250903001& rated_year ==2003; qui replace sample=1 if campus==243905004& rated_year ==1997; qui replace sample=1 if campus==113902002& rated_year ==2008; qui replace sample=1 if campus==18907001& rated_year ==2003; qui replace sample=1 if campus==101907005& rated_year ==2000; qui replace sample=1 if campus==178909001& rated_year ==1994; qui replace sample=1 if campus==21902005& rated_year ==1994; qui replace sample=1 if campus==227901010& rated_year ==1996; qui replace sample=1 if campus==146904001& rated_year ==1998; qui replace sample=1 if campus==178904001& rated_year ==1998; qui replace sample=1 if campus==68901045& rated_year ==2003; qui replace sample=1 if campus==43918001& rated_year ==1995; qui replace sample=1 if campus==101915001& rated_year ==2003; qui replace sample=1 if campus==116908001& rated_year ==2002; qui replace sample=1 if campus==240901002& rated_year ==2007; qui replace sample=1 if campus==83901001& rated_year ==2000; qui replace sample=1 if campus==212901001& rated_year ==1994; qui replace sample=1 if campus==108910001& rated_year ==1999; qui replace sample=1 if campus==57905008& rated_year ==1999; qui replace sample=1 if campus==108910001& rated_year ==1994; qui replace sample=1 if campus==254901001& rated_year ==2007; qui replace sample=1 if campus==43910004& rated_year ==2006; qui replace sample=1 if campus==112901002& rated_year ==1998; qui replace sample=1 if campus==228901001& rated_year ==2003; qui replace sample=1 if campus==14910001& rated_year ==2005; qui replace sample=1 if campus==195901001& rated_year ==2008; qui replace sample=1 if campus==31901007& rated_year ==1998; qui replace sample=1 if campus==201914001& rated_year ==2007; qui replace sample=1 if campus==127904001& rated_year ==1995; qui replace sample=1 if campus==174906001& rated_year ==1997; qui replace sample=1 if campus==120901001& rated_year ==2007; qui replace sample=1 if campus==91910001& rated_year ==1995; qui replace sample=1 if campus==84901001& rated_year ==2007; qui replace sample=1 if campus==108909003& rated_year ==2003; qui replace sample=1 if campus==101902004& rated_year ==1996; qui replace sample=1 if campus==2901001& rated_year ==1999; qui replace sample=1 if campus==108909003& rated_year ==1998; qui replace sample=1 if campus==218901001& rated_year ==2004; qui replace sample=1 if campus==15907005& rated_year ==2004; qui replace sample=1 if campus==101912008& rated_year ==2005; qui replace sample=1 if campus==31906001& rated_year ==2007; qui replace sample=1 if campus==34907001& rated_year ==2007; qui replace sample=1 if campus==79910001& rated_year ==2001; qui replace sample=1 if campus==174903001& rated_year ==1997; qui replace sample=1 if campus==98904001& rated_year ==2006; qui replace sample=1 if campus==71902003& rated_year ==2000; qui replace sample=1 if campus==126902001& rated_year ==2005; qui replace sample=1 if campus==188903001& rated_year ==2000; qui replace sample=1 if campus==31901007& rated_year ==2004; qui replace sample=1 if campus==101914002& rated_year ==2006; qui replace sample=1 if campus==64903001& rated_year ==2005; qui replace sample=1 if campus==46902001& rated_year ==1998; qui replace sample=1 if campus==63903001& rated_year ==2000; qui replace sample=1 if campus==190903001& rated_year ==2000; qui replace sample=1 if campus==91910001& rated_year ==2007; qui replace sample=1 if campus==40902001& rated_year ==2008; qui replace sample=1 if campus==57910002& rated_year ==2006; qui replace sample=1 if campus==107905001& rated_year ==1996; qui replace sample=1 if campus==44902001& rated_year ==1996; qui replace sample=1 if campus==7902001& rated_year ==2006; qui replace sample=1 if campus==170907001& rated_year ==2002; qui replace sample=1 if campus==108908001& rated_year ==2002; qui replace sample=1 if campus==108908001& rated_year ==2000; qui replace sample=1 if campus==101913002& rated_year ==2005; qui replace sample=1 if campus==198905002& rated_year ==2006; qui replace sample=1 if campus==188901002& rated_year ==2003; qui replace sample=1 if campus==175904001& rated_year ==2005; qui replace sample=1 if campus==101920001& rated_year ==1995; qui replace sample=1 if campus==71905004& rated_year ==1998; qui replace sample=1 if campus==140908001& rated_year ==2005; qui replace sample=1 if campus==75901001& rated_year ==1995; qui replace sample=1 if campus==37907002& rated_year ==1994; qui replace sample=1 if campus==178904001& rated_year ==2001; qui replace sample=1 if campus==38901001& rated_year ==1994; qui replace sample=1 if campus==31901002& rated_year ==1994; qui replace sample=1 if campus==240901003& rated_year ==1995; qui replace sample=1 if campus==129905001& rated_year ==2001; qui replace sample=1 if campus==62903001& rated_year ==2008; qui replace sample=1 if campus==126902001& rated_year ==1996; qui replace sample=1 if campus==47902001& rated_year ==2008; qui replace sample=1 if campus==108907001& rated_year ==1997; qui replace sample=1 if campus==108907001& rated_year ==1994; qui replace sample=1 if campus==196902001& rated_year ==1996; qui replace sample=1 if campus==46902002& rated_year ==2004; qui replace sample=1 if campus==201910002& rated_year ==1995; qui replace sample=1 if campus==15908001& rated_year ==1998; qui replace sample=1 if campus==34903001& rated_year ==2002; qui replace sample=1 if campus==177901001& rated_year ==2004; qui replace sample=1 if campus==233901001& rated_year ==1998; qui replace sample=1 if campus==91901001& rated_year ==1998; qui replace sample=1 if campus==190903001& rated_year ==2003; qui replace sample=1 if campus==101912007& rated_year ==2007; qui replace sample=1 if campus==71904001& rated_year ==1995; qui replace sample=1 if campus==124901001& rated_year ==1995; qui replace sample=1 if campus==31916004& rated_year ==1998; qui replace sample=1 if campus==227901003& rated_year ==2006; qui replace sample=1 if campus==121904001& rated_year ==2007; qui replace sample=1 if campus==113906001& rated_year ==2005; qui replace sample=1 if campus==84902001& rated_year ==2001; qui replace sample=1 if campus==200904001& rated_year ==2005; qui replace sample=1 if campus==113902002& rated_year ==2003; qui replace sample=1 if campus==101905001& rated_year ==1997; qui replace sample=1 if campus==108906006& rated_year ==2001; qui replace sample=1 if campus==231901001& rated_year ==2000; qui replace sample=1 if campus==250903001& rated_year ==1998; qui replace sample=1 if campus==137903001& rated_year ==2006; qui replace sample=1 if campus==19909001& rated_year ==1996; qui replace sample=1 if campus==243902001& rated_year ==2007; qui replace sample=1 if campus==248902001& rated_year ==1994; qui replace sample=1 if campus==61905001& rated_year ==2006; qui replace sample=1 if campus==75901001& rated_year ==1994; qui replace sample=1 if campus==230908001& rated_year ==2002; qui replace sample=1 if campus==108906002& rated_year ==2008; qui replace sample=1 if campus==105902001& rated_year ==1998; qui replace sample=1 if campus==108906002& rated_year ==2005; qui replace sample=1 if campus==101912009& rated_year ==2000; qui replace sample=1 if campus==108906002& rated_year ==2002; qui replace sample=1 if campus==220910001& rated_year ==1999; qui replace sample=1 if campus==145906001& rated_year ==2004; qui replace sample=1 if campus==108906002& rated_year ==1996; qui replace sample=1 if campus==43907002& rated_year ==1995; qui replace sample=1 if campus==108906001& rated_year ==2008; qui replace sample=1 if campus==66901001& rated_year ==1995; qui replace sample=1 if campus==145901002& rated_year ==2006; qui replace sample=1 if campus==108906001& rated_year ==2005; qui replace sample=1 if campus==161910001& rated_year ==2000; qui replace sample=1 if campus==150901001& rated_year ==2001; qui replace sample=1 if campus==101911002& rated_year ==1994; qui replace sample=1 if campus==65901001& rated_year ==2008; qui replace sample=1 if campus==57907003& rated_year ==2003; qui replace sample=1 if campus==27903001& rated_year ==2007; qui replace sample=1 if campus==84908001& rated_year ==2008; qui replace sample=1 if campus==71902005& rated_year ==1997; qui replace sample=1 if campus==14908001& rated_year ==2000; qui replace sample=1 if campus==108902001& rated_year ==2000; qui replace sample=1 if campus==68901003& rated_year ==2008; qui replace sample=1 if campus==31914001& rated_year ==2008; qui replace sample=1 if campus==50910001& rated_year ==2006; qui replace sample=1 if campus==201913001& rated_year ==2008; qui replace sample=1 if campus==101914001& rated_year ==1995; qui replace sample=1 if campus==84903001& rated_year ==2008; qui replace sample=1 if campus==205905001& rated_year ==2000; qui replace sample=1 if campus==170906001& rated_year ==2001; qui replace sample=1 if campus==101910002& rated_year ==1997; qui replace sample=1 if campus==246909003& rated_year ==2002; qui replace sample=1 if campus==252903001& rated_year ==2006; qui replace sample=1 if campus==183901001& rated_year ==2003; qui replace sample=1 if campus==196902001& rated_year ==2000; qui replace sample=1 if campus==108916001& rated_year ==1996; qui replace sample=1 if campus==57905023& rated_year ==2000; qui replace sample=1 if campus==79907002& rated_year ==2002; qui replace sample=1 if campus==155901002& rated_year ==2003; qui replace sample=1 if campus==248901001& rated_year ==2003; qui replace sample=1 if campus==220905015& rated_year ==2005; qui replace sample=1 if campus==214901001& rated_year ==2002; qui replace sample=1 if campus==178902001& rated_year ==2003; qui replace sample=1 if campus==178902001& rated_year ==2007; qui replace sample=1 if campus==205903001& rated_year ==2000; qui replace sample=1 if campus==178903001& rated_year ==1994; qui replace sample=1 if campus==178903001& rated_year ==1995; qui replace sample=1 if campus==244903001& rated_year ==1997; qui replace sample=1 if campus==178903001& rated_year ==2001; qui replace sample=1 if campus==101909002& rated_year ==2002; qui replace sample=1 if campus==167901001& rated_year ==2004; qui replace sample=1 if campus==20901001& rated_year ==1998; qui replace sample=1 if campus==178904001& rated_year ==1994; qui replace sample=1 if campus==178904001& rated_year ==1999; qui replace sample=1 if campus==172905002& rated_year ==1996; qui replace sample=1 if campus==100907001& rated_year ==1995; qui replace sample=1 if campus==79910001& rated_year ==1995; qui replace sample=1 if campus==15906001& rated_year ==1998; qui replace sample=1 if campus==31905001& rated_year ==1998; qui replace sample=1 if campus==70912002& rated_year ==2002; qui replace sample=1 if campus==84908001& rated_year ==1999; qui replace sample=1 if campus==91918001& rated_year ==2001; qui replace sample=1 if campus==133901001& rated_year ==1996; qui replace sample=1 if campus==101909002& rated_year ==1997; qui replace sample=1 if campus==178904002& rated_year ==2008; qui replace sample=1 if campus==178904003& rated_year ==1996; qui replace sample=1 if campus==178904003& rated_year ==1998; qui replace sample=1 if campus==212905001& rated_year ==2005; qui replace sample=1 if campus==178904003& rated_year ==2002; qui replace sample=1 if campus==246909001& rated_year ==2006; qui replace sample=1 if campus==123908001& rated_year ==2005; qui replace sample=1 if campus==178904003& rated_year ==2006; qui replace sample=1 if campus==30902001& rated_year ==1995; qui replace sample=1 if campus==178904004& rated_year ==1995; qui replace sample=1 if campus==220905014& rated_year ==2003; qui replace sample=1 if campus==140905002& rated_year ==2004; qui replace sample=1 if campus==101910003& rated_year ==2001; qui replace sample=1 if campus==15916001& rated_year ==2003; qui replace sample=1 if campus==178904004& rated_year ==2008; qui replace sample=1 if campus==71907001& rated_year ==2003; qui replace sample=1 if campus==178904005& rated_year ==1994; qui replace sample=1 if campus==178904005& rated_year ==2002; qui replace sample=1 if campus==57914001& rated_year ==1999; qui replace sample=1 if campus==27904001& rated_year ==2003; qui replace sample=1 if campus==7901001& rated_year ==1995; qui replace sample=1 if campus==130901001& rated_year ==1994; qui replace sample=1 if campus==15910005& rated_year ==2000; qui replace sample=1 if campus==175907001& rated_year ==1995; qui replace sample=1 if campus==125905001& rated_year ==2001; qui replace sample=1 if campus==14903001& rated_year ==2002; qui replace sample=1 if campus==106901001& rated_year ==2000; qui replace sample=1 if campus==50910001& rated_year ==2001; qui replace sample=1 if campus==121905001& rated_year ==2002; qui replace sample=1 if campus==91906002& rated_year ==2006; qui replace sample=1 if campus==30906001& rated_year ==1997; qui replace sample=1 if campus==57914002& rated_year ==2005; qui replace sample=1 if campus==163903001& rated_year ==1995; qui replace sample=1 if campus==1904001& rated_year ==2000; qui replace sample=1 if campus==61911001& rated_year ==2007; qui replace sample=1 if campus==127901001& rated_year ==2001; qui replace sample=1 if campus==152908001& rated_year ==1997; qui replace sample=1 if campus==236901002& rated_year ==1994; qui replace sample=1 if campus==176902002& rated_year ==1994; qui replace sample=1 if campus==39902001& rated_year ==2003; qui replace sample=1 if campus==71905002& rated_year ==1997; qui replace sample=1 if campus==101920003& rated_year ==2001; qui replace sample=1 if campus==15915003& rated_year ==2002; qui replace sample=1 if campus==71905007& rated_year ==1997; qui replace sample=1 if campus==212910001& rated_year ==1998; qui replace sample=1 if campus==146904001& rated_year ==1999; qui replace sample=1 if campus==57913001& rated_year ==2007; qui replace sample=1 if campus==26902001& rated_year ==2006; qui replace sample=1 if campus==61905001& rated_year ==2008; qui replace sample=1 if campus==101909002& rated_year ==2003; qui replace sample=1 if campus==105905001& rated_year ==2001; qui replace sample=1 if campus==70905002& rated_year ==1998; qui replace sample=1 if campus==161923001& rated_year ==1996; qui replace sample=1 if campus==227901006& rated_year ==1998; qui replace sample=1 if campus==2901001& rated_year ==2008; qui replace sample=1 if campus==71905014& rated_year ==2006; qui replace sample=1 if campus==220905011& rated_year ==2002; qui replace sample=1 if campus==178908001& rated_year ==2000; qui replace sample=1 if campus==230902002& rated_year ==1997; qui replace sample=1 if campus==101912008& rated_year ==1994; qui replace sample=1 if campus==61911001& rated_year ==1996; qui replace sample=1 if campus==178908001& rated_year ==2005; qui replace sample=1 if campus==178908001& rated_year ==2007; qui replace sample=1 if campus==178908001& rated_year ==2008; qui replace sample=1 if campus==43903001& rated_year ==1997; qui replace sample=1 if campus==178909001& rated_year ==2006; qui replace sample=1 if campus==31916003& rated_year ==1997; qui replace sample=1 if campus==227913001& rated_year ==2008; qui replace sample=1 if campus==66903002& rated_year ==2007; qui replace sample=1 if campus==211902001& rated_year ==2007; qui replace sample=1 if campus==234903001& rated_year ==2002; qui replace sample=1 if campus==220907001& rated_year ==2007; qui replace sample=1 if campus==101912016& rated_year ==2001; qui replace sample=1 if campus==111901001& rated_year ==2000; qui replace sample=1 if campus==210905001& rated_year ==1999; qui replace sample=1 if campus==121905001& rated_year ==2007; qui replace sample=1 if campus==14907001& rated_year ==2004; qui replace sample=1 if campus==14907001& rated_year ==1995; qui replace sample=1 if campus==71902009& rated_year ==2006; qui replace sample=1 if campus==178912001& rated_year ==1997; qui replace sample=1 if campus==108903001& rated_year ==2004; qui replace sample=1 if campus==236901002& rated_year ==1999; qui replace sample=1 if campus==178912001& rated_year ==2001; qui replace sample=1 if campus==248901001& rated_year ==2005; qui replace sample=1 if campus==178912001& rated_year ==2004; qui replace sample=1 if campus==174904002& rated_year ==2001; qui replace sample=1 if campus==71907001& rated_year ==1994; qui replace sample=1 if campus==101924001& rated_year ==2006; qui replace sample=1 if campus==220905016& rated_year ==2007; qui replace sample=1 if campus==84906001& rated_year ==2005; qui replace sample=1 if campus==188903001& rated_year ==2008; qui replace sample=1 if campus==98904001& rated_year ==2004; qui replace sample=1 if campus==71902005& rated_year ==1996; qui replace sample=1 if campus==204904001& rated_year ==1998; qui replace sample=1 if campus==146902002& rated_year ==2006; qui replace sample=1 if campus==35901001& rated_year ==1994; qui replace sample=1 if campus==250906001& rated_year ==2001; qui replace sample=1 if campus==105904001& rated_year ==2000; qui replace sample=1 if campus==137901001& rated_year ==2005; qui replace sample=1 if campus==43904001& rated_year ==1995; qui replace sample=1 if campus==178913001& rated_year ==1996; qui replace sample=1 if campus==212905001& rated_year ==1995; qui replace sample=1 if campus==178914001& rated_year ==2001; qui replace sample=1 if campus==61901003& rated_year ==2000; qui replace sample=1 if campus==178913001& rated_year ==2008; qui replace sample=1 if campus==178914001& rated_year ==1995; qui replace sample=1 if campus==92903001& rated_year ==1999; qui replace sample=1 if campus==133903001& rated_year ==2003; qui replace sample=1 if campus==246913001& rated_year ==2007; qui replace sample=1 if campus==220905006& rated_year ==1998; qui replace sample=1 if campus==170907001& rated_year ==2008; qui replace sample=1 if campus==67903001& rated_year ==1995; qui replace sample=1 if campus==15905002& rated_year ==2004; qui replace sample=1 if campus==71902003& rated_year ==1999; qui replace sample=1 if campus==20905001& rated_year ==1997; qui replace sample=1 if campus==109904001& rated_year ==2007; qui replace sample=1 if campus==250907001& rated_year ==1995; qui replace sample=1 if campus==71907001& rated_year ==1995; qui replace sample=1 if campus==220918001& rated_year ==2005; qui replace sample=1 if campus==15912001& rated_year ==1999; qui replace sample=1 if campus==8902001& rated_year ==2003; qui replace sample=1 if campus==246913001& rated_year ==2003; qui replace sample=1 if campus==178915001& rated_year ==1994; qui replace sample=1 if campus==178915001& rated_year ==1995; qui replace sample=1 if campus==178915001& rated_year ==1999; qui replace sample=1 if campus==16902001& rated_year ==2008; qui replace sample=1 if campus==178915001& rated_year ==2001; qui replace sample=1 if campus==237902001& rated_year ==2002; qui replace sample=1 if campus==141902001& rated_year ==2005; qui replace sample=1 if campus==145901002& rated_year ==2002; qui replace sample=1 if campus==105904001& rated_year ==1995; qui replace sample=1 if campus==15917001& rated_year ==2001; qui replace sample=1 if campus==109907001& rated_year ==1999; qui replace sample=1 if campus==140908001& rated_year ==1998; qui replace sample=1 if campus==91918001& rated_year ==2004; qui replace sample=1 if campus==101912014& rated_year ==1995; qui replace sample=1 if campus==91901001& rated_year ==2002; qui replace sample=1 if campus==179901001& rated_year ==1997; qui replace sample=1 if campus==91901001& rated_year ==1994; qui replace sample=1 if campus==213901001& rated_year ==2004; qui replace sample=1 if campus==64901001& rated_year ==1999; qui replace sample=1 if campus==179901001& rated_year ==2001; qui replace sample=1 if campus==179901001& rated_year ==2003; qui replace sample=1 if campus==178915001& rated_year ==2002; qui replace sample=1 if campus==179901001& rated_year ==2005; qui replace sample=1 if campus==251901001& rated_year ==1994; qui replace sample=1 if campus==116906001& rated_year ==1998; qui replace sample=1 if campus==84908001& rated_year ==1996; qui replace sample=1 if campus==70915001& rated_year ==2006; qui replace sample=1 if campus==220905010& rated_year ==2007; qui replace sample=1 if campus==91908001& rated_year ==2006; qui replace sample=1 if campus==180901001& rated_year ==1994; qui replace sample=1 if campus==220917001& rated_year ==1998; qui replace sample=1 if campus==180901001& rated_year ==1996; qui replace sample=1 if campus==34903001& rated_year ==2008; qui replace sample=1 if campus==180901001& rated_year ==2001; qui replace sample=1 if campus==180901001& rated_year ==2002; qui replace sample=1 if campus==212910001& rated_year ==2002; qui replace sample=1 if campus==14901001& rated_year ==2005; qui replace sample=1 if campus==180901001& rated_year ==2007; qui replace sample=1 if campus==46902001& rated_year ==2007; qui replace sample=1 if campus==235902001& rated_year ==1997; qui replace sample=1 if campus==158906002& rated_year ==2004; qui replace sample=1 if campus==95903001& rated_year ==2005; qui replace sample=1 if campus==15907004& rated_year ==1996; qui replace sample=1 if campus==70910001& rated_year ==2006; qui replace sample=1 if campus==178904003& rated_year ==1999; qui replace sample=1 if campus==126902001& rated_year ==1995; qui replace sample=1 if campus==43903001& rated_year ==2000; qui replace sample=1 if campus==230902002& rated_year ==2006; qui replace sample=1 if campus==176903001& rated_year ==1999; qui replace sample=1 if campus==45902001& rated_year ==2000; qui replace sample=1 if campus==50910001& rated_year ==1994; qui replace sample=1 if campus==14901001& rated_year ==2007; qui replace sample=1 if campus==170906001& rated_year ==2000; qui replace sample=1 if campus==181901001& rated_year ==1999; qui replace sample=1 if campus==108913001& rated_year ==2008; qui replace sample=1 if campus==181901001& rated_year ==2002; qui replace sample=1 if campus==14906002& rated_year ==2003; qui replace sample=1 if campus==19907002& rated_year ==2007; qui replace sample=1 if campus==220905015& rated_year ==2001; qui replace sample=1 if campus==43910003& rated_year ==1996; qui replace sample=1 if campus==210903002& rated_year ==2008; qui replace sample=1 if campus==181905001& rated_year ==1997; qui replace sample=1 if campus==15907004& rated_year ==2004; qui replace sample=1 if campus==57905036& rated_year ==1994; qui replace sample=1 if campus==57912003& rated_year ==2007; qui replace sample=1 if campus==181905001& rated_year ==2007; qui replace sample=1 if campus==205902001& rated_year ==2003; qui replace sample=1 if campus==165902001& rated_year ==2000; qui replace sample=1 if campus==181906001& rated_year ==2000; qui replace sample=1 if campus==16901001& rated_year ==1996; qui replace sample=1 if campus==53001001& rated_year ==2008; qui replace sample=1 if campus==174908001& rated_year ==1996; qui replace sample=1 if campus==74903001& rated_year ==2000; qui replace sample=1 if campus==181906001& rated_year ==2005; qui replace sample=1 if campus==7901001& rated_year ==2005; qui replace sample=1 if campus==201914001& rated_year ==1995; qui replace sample=1 if campus==187901001& rated_year ==2006; qui replace sample=1 if campus==231901001& rated_year ==1998; qui replace sample=1 if campus==116908001& rated_year ==1998; qui replace sample=1 if campus==181905001& rated_year ==2004; qui replace sample=1 if campus==63903001& rated_year ==1998; qui replace sample=1 if campus==181907001& rated_year ==1999; qui replace sample=1 if campus==101912025& rated_year ==2005; qui replace sample=1 if campus==100907001& rated_year ==1996; qui replace sample=1 if campus==181907001& rated_year ==2007; qui replace sample=1 if campus==49903001& rated_year ==2004; qui replace sample=1 if campus==30902001& rated_year ==2008; qui replace sample=1 if campus==181908001& rated_year ==1995; qui replace sample=1 if campus==95905001& rated_year ==1996; qui replace sample=1 if campus==178903001& rated_year ==1997; qui replace sample=1 if campus==19909001& rated_year ==2001; qui replace sample=1 if campus==14903001& rated_year ==2003; qui replace sample=1 if campus==101902004& rated_year ==2007; qui replace sample=1 if campus==233901002& rated_year ==2004; qui replace sample=1 if campus==201903001& rated_year ==1999; qui replace sample=1 if campus==38901001& rated_year ==2003; qui replace sample=1 if campus==101908001& rated_year ==1997; qui replace sample=1 if campus==152909001& rated_year ==2008; qui replace sample=1 if campus==178904002& rated_year ==2004; qui replace sample=1 if campus==91908001& rated_year ==2002; qui replace sample=1 if campus==101902001& rated_year ==1996; qui replace sample=1 if campus==28903001& rated_year ==2005; qui replace sample=1 if campus==91906002& rated_year ==2008; qui replace sample=1 if campus==182902001& rated_year ==2002; qui replace sample=1 if campus==19901001& rated_year ==2003; qui replace sample=1 if campus==246908001& rated_year ==2000; qui replace sample=1 if campus==91908001& rated_year ==1995; qui replace sample=1 if campus==19902002& rated_year ==2002; qui replace sample=1 if campus==174908001& rated_year ==2003; qui replace sample=1 if campus==91914001& rated_year ==2004; qui replace sample=1 if campus==139912001& rated_year ==2003; qui replace sample=1 if campus==1903001& rated_year ==2007; qui replace sample=1 if campus==161922001& rated_year ==1994; qui replace sample=1 if campus==187901001& rated_year ==1996; qui replace sample=1 if campus==174903001& rated_year ==2001; qui replace sample=1 if campus==43910003& rated_year ==1994; qui replace sample=1 if campus==243905004& rated_year ==1999; qui replace sample=1 if campus==57905006& rated_year ==1996; qui replace sample=1 if campus==92908001& rated_year ==1994; qui replace sample=1 if campus==15907004& rated_year ==1994; qui replace sample=1 if campus==15910001& rated_year ==1997; qui replace sample=1 if campus==169902001& rated_year ==2002; qui replace sample=1 if campus==57905021& rated_year ==1994; qui replace sample=1 if campus==1904001& rated_year ==2008; qui replace sample=1 if campus==209901001& rated_year ==2001; qui replace sample=1 if campus==79906001& rated_year ==2008; qui replace sample=1 if campus==167901001& rated_year ==2003; qui replace sample=1 if campus==108906001& rated_year ==2000; qui replace sample=1 if campus==183901001& rated_year ==1995; qui replace sample=1 if campus==227901005& rated_year ==1997; qui replace sample=1 if campus==164901001& rated_year ==1999; qui replace sample=1 if campus==170908001& rated_year ==1994; qui replace sample=1 if campus==249906001& rated_year ==2004; qui replace sample=1 if campus==102905001& rated_year ==2008; qui replace sample=1 if campus==181908001& rated_year ==2002; qui replace sample=1 if campus==183901001& rated_year ==2004; qui replace sample=1 if campus==57905022& rated_year ==2000; qui replace sample=1 if campus==96904001& rated_year ==2005; qui replace sample=1 if campus==195901001& rated_year ==1997; qui replace sample=1 if campus==178904002& rated_year ==2006; qui replace sample=1 if campus==183902001& rated_year ==1996; qui replace sample=1 if campus==183902001& rated_year ==1997; qui replace sample=1 if campus==214903001& rated_year ==2002; qui replace sample=1 if campus==183902001& rated_year ==2004; qui replace sample=1 if campus==183902001& rated_year ==2007; qui replace sample=1 if campus==105906001& rated_year ==2005; qui replace sample=1 if campus==71901001& rated_year ==1997; qui replace sample=1 if campus==218901001& rated_year ==2008; qui replace sample=1 if campus==57905036& rated_year ==2006; qui replace sample=1 if campus==15907182& rated_year ==1994; qui replace sample=1 if campus==121904001& rated_year ==2000; qui replace sample=1 if campus==133903001& rated_year ==1998; qui replace sample=1 if campus==232903001& rated_year ==2005; qui replace sample=1 if campus==57905023& rated_year ==1996; qui replace sample=1 if campus==100903002& rated_year ==2005; qui replace sample=1 if campus==66902001& rated_year ==1996; qui replace sample=1 if campus==220905002& rated_year ==2000; qui replace sample=1 if campus==20908001& rated_year ==2005; qui replace sample=1 if campus==184902001& rated_year ==1997; qui replace sample=1 if campus==172902001& rated_year ==2000; qui replace sample=1 if campus==15907008& rated_year ==2001; qui replace sample=1 if campus==184902001& rated_year ==2003; qui replace sample=1 if campus==161923001& rated_year ==1998; qui replace sample=1 if campus==129904001& rated_year ==1999; qui replace sample=1 if campus==116915001& rated_year ==2001; qui replace sample=1 if campus==176902002& rated_year ==2003; qui replace sample=1 if campus==19901001& rated_year ==2006; qui replace sample=1 if campus==15915001& rated_year ==2004; qui replace sample=1 if campus==178904005& rated_year ==2006; qui replace sample=1 if campus==19901001& rated_year ==1997; qui replace sample=1 if campus==101920003& rated_year ==2003; qui replace sample=1 if campus==178904001& rated_year ==2002; qui replace sample=1 if campus==67902001& rated_year ==2000; qui replace sample=1 if campus==114904001& rated_year ==2003; qui replace sample=1 if campus==20906002& rated_year ==2002; qui replace sample=1 if campus==15907001& rated_year ==2002; qui replace sample=1 if campus==184903001& rated_year ==1998; qui replace sample=1 if campus==84910002& rated_year ==2006; qui replace sample=1 if campus==184903001& rated_year ==2004; qui replace sample=1 if campus==57909002& rated_year ==2003; qui replace sample=1 if campus==92902002& rated_year ==1994; qui replace sample=1 if campus==71906001& rated_year ==1998; qui replace sample=1 if campus==15908002& rated_year ==1994; qui replace sample=1 if campus==127901001& rated_year ==2005; qui replace sample=1 if campus==102904002& rated_year ==2006; qui replace sample=1 if campus==161910001& rated_year ==2008; qui replace sample=1 if campus==75901001& rated_year ==2001; qui replace sample=1 if campus==79907006& rated_year ==1994; qui replace sample=1 if campus==174904002& rated_year ==2008; qui replace sample=1 if campus==57905025& rated_year ==2007; qui replace sample=1 if campus==234906001& rated_year ==1998; qui replace sample=1 if campus==15905003& rated_year ==2008; qui replace sample=1 if campus==127901001& rated_year ==2006; qui replace sample=1 if campus==68901002& rated_year ==2008; qui replace sample=1 if campus==181901001& rated_year ==1994; qui replace sample=1 if campus==147903002& rated_year ==2000; qui replace sample=1 if campus==184904001& rated_year ==2000; qui replace sample=1 if campus==107901001& rated_year ==1999; qui replace sample=1 if campus==184904001& rated_year ==2008; qui replace sample=1 if campus==184907001& rated_year ==1995; qui replace sample=1 if campus==246911001& rated_year ==2006; qui replace sample=1 if campus==58906001& rated_year ==2008; qui replace sample=1 if campus==184907001& rated_year ==1998; qui replace sample=1 if campus==57905023& rated_year ==2008; qui replace sample=1 if campus==184907001& rated_year ==2004; qui replace sample=1 if campus==184907001& rated_year ==2005; qui replace sample=1 if campus==239903001& rated_year ==2004; qui replace sample=1 if campus==152908001& rated_year ==2000; qui replace sample=1 if campus==57903001& rated_year ==2006; qui replace sample=1 if campus==161903001& rated_year ==2006; qui replace sample=1 if campus==101907007& rated_year ==2001; qui replace sample=1 if campus==218901001& rated_year ==1994; qui replace sample=1 if campus==178915001& rated_year ==1996; qui replace sample=1 if campus==33904001& rated_year ==2000; qui replace sample=1 if campus==184908001& rated_year ==1999; qui replace sample=1 if campus==184908001& rated_year ==2001; qui replace sample=1 if campus==220904001& rated_year ==1999; qui replace sample=1 if campus==246907001& rated_year ==2007; qui replace sample=1 if campus==70903002& rated_year ==2001; qui replace sample=1 if campus==212901001& rated_year ==2007; qui replace sample=1 if campus==57905006& rated_year ==2004; qui replace sample=1 if campus==158901001& rated_year ==2000; qui replace sample=1 if campus==184909001& rated_year ==2008; qui replace sample=1 if campus==185901001& rated_year ==1994; qui replace sample=1 if campus==129910001& rated_year ==1994; qui replace sample=1 if campus==185901001& rated_year ==1997; qui replace sample=1 if campus==185901001& rated_year ==1998; qui replace sample=1 if campus==185901001& rated_year ==2000; qui replace sample=1 if campus==246911001& rated_year ==2001; qui replace sample=1 if campus==220901004& rated_year ==2008; qui replace sample=1 if campus==105904001& rated_year ==1994; qui replace sample=1 if campus==116916001& rated_year ==2007; qui replace sample=1 if campus==31916005& rated_year ==2005; qui replace sample=1 if campus==251902001& rated_year ==2002; qui replace sample=1 if campus==185901001& rated_year ==2008; qui replace sample=1 if campus==15909001& rated_year ==2001; qui replace sample=1 if campus==227910001& rated_year ==1994; qui replace sample=1 if campus==108916001& rated_year ==1999; qui replace sample=1 if campus==14910001& rated_year ==2006; qui replace sample=1 if campus==205904001& rated_year ==2008; qui replace sample=1 if campus==79907006& rated_year ==1995; qui replace sample=1 if campus==243905002& rated_year ==1998; qui replace sample=1 if campus==15901001& rated_year ==2006; qui replace sample=1 if campus==57910003& rated_year ==2006; qui replace sample=1 if campus==185903001& rated_year ==1999; qui replace sample=1 if campus==234906001& rated_year ==2000; qui replace sample=1 if campus==15915001& rated_year ==2005; qui replace sample=1 if campus==51901001& rated_year ==1996; qui replace sample=1 if campus==95901001& rated_year ==2001; qui replace sample=1 if campus==185903001& rated_year ==2007; qui replace sample=1 if campus==221911001& rated_year ==1994; qui replace sample=1 if campus==152908001& rated_year ==2003; qui replace sample=1 if campus==140908001& rated_year ==2004; qui replace sample=1 if campus==218901001& rated_year ==2000; qui replace sample=1 if campus==8901001& rated_year ==1994; qui replace sample=1 if campus==158905001& rated_year ==2007; qui replace sample=1 if campus==57909005& rated_year ==2000; qui replace sample=1 if campus==105904001& rated_year ==1998; qui replace sample=1 if campus==57907003& rated_year ==2002; qui replace sample=1 if campus==100908001& rated_year ==1997; qui replace sample=1 if campus==155901002& rated_year ==1996; qui replace sample=1 if campus==39903001& rated_year ==2001; qui replace sample=1 if campus==81905002& rated_year ==1997; qui replace sample=1 if campus==101917001& rated_year ==1996; qui replace sample=1 if campus==186902001& rated_year ==1994; qui replace sample=1 if campus==54902001& rated_year ==2005; qui replace sample=1 if campus==220902002& rated_year ==2004; qui replace sample=1 if campus==186902001& rated_year ==1999; qui replace sample=1 if campus==186902001& rated_year ==2000; qui replace sample=1 if campus==246911001& rated_year ==1995; qui replace sample=1 if campus==129905001& rated_year ==1996; qui replace sample=1 if campus==246911001& rated_year ==1994; qui replace sample=1 if campus==116906001& rated_year ==2008; qui replace sample=1 if campus==71905004& rated_year ==2006; qui replace sample=1 if campus==101902002& rated_year ==1995; qui replace sample=1 if campus==14909002& rated_year ==2008; qui replace sample=1 if campus==15915002& rated_year ==2005; qui replace sample=1 if campus==122901002& rated_year ==1995; qui replace sample=1 if campus==247903001& rated_year ==2007; qui replace sample=1 if campus==31914001& rated_year ==1995; qui replace sample=1 if campus==60902001& rated_year ==2000; qui replace sample=1 if campus==62904001& rated_year ==1999; qui replace sample=1 if campus==15909001& rated_year ==2008; qui replace sample=1 if campus==246908001& rated_year ==1994; qui replace sample=1 if campus==39903001& rated_year ==2005; qui replace sample=1 if campus==158902001& rated_year ==1999; qui replace sample=1 if campus==43918001& rated_year ==2002; qui replace sample=1 if campus==187901001& rated_year ==2001; qui replace sample=1 if campus==93904002& rated_year ==2001; qui replace sample=1 if campus==79901001& rated_year ==2000; qui replace sample=1 if campus==187901001& rated_year ==2004; qui replace sample=1 if campus==57909002& rated_year ==1994; qui replace sample=1 if campus==187901001& rated_year ==2008; qui replace sample=1 if campus==231901001& rated_year ==2003; qui replace sample=1 if campus==54903001& rated_year ==1994; qui replace sample=1 if campus==79907002& rated_year ==2008; qui replace sample=1 if campus==251902001& rated_year ==2001; qui replace sample=1 if campus==57920002& rated_year ==2001; qui replace sample=1 if campus==79907006& rated_year ==2000; qui replace sample=1 if campus==15913001& rated_year ==2007; qui replace sample=1 if campus==226903002& rated_year ==1994; qui replace sample=1 if campus==15916001& rated_year ==1995; qui replace sample=1 if campus==57905006& rated_year ==2007; qui replace sample=1 if campus==61902004& rated_year ==1994; qui replace sample=1 if campus==49905001& rated_year ==2002; qui replace sample=1 if campus==205902001& rated_year ==2000; qui replace sample=1 if campus==161907001& rated_year ==2000; qui replace sample=1 if campus==129910001& rated_year ==2005; qui replace sample=1 if campus==187907002& rated_year ==1998; qui replace sample=1 if campus==71906001& rated_year ==1999; qui replace sample=1 if campus==187907002& rated_year ==2001; qui replace sample=1 if campus==129903001& rated_year ==2008; qui replace sample=1 if campus==12901001& rated_year ==2001; qui replace sample=1 if campus==101902002& rated_year ==2001; qui replace sample=1 if campus==15907182& rated_year ==2004; qui replace sample=1 if campus==108907001& rated_year ==2005; qui replace sample=1 if campus==116901001& rated_year ==1996; qui replace sample=1 if campus==1908002& rated_year ==1998; qui replace sample=1 if campus==71904001& rated_year ==2002; qui replace sample=1 if campus==15910003& rated_year ==2005; qui replace sample=1 if campus==15904001& rated_year ==2002; qui replace sample=1 if campus==161923001& rated_year ==2002; qui replace sample=1 if campus==100908001& rated_year ==2007; qui replace sample=1 if campus==108908001& rated_year ==1995; qui replace sample=1 if campus==227913001& rated_year ==1998; qui replace sample=1 if campus==101910002& rated_year ==2001; qui replace sample=1 if campus==5902001& rated_year ==2001; qui replace sample=1 if campus==188901001& rated_year ==2004; qui replace sample=1 if campus==100907001& rated_year ==2007; qui replace sample=1 if campus==84901001& rated_year ==2005; qui replace sample=1 if campus==19905001& rated_year ==2001; qui replace sample=1 if campus==71902011& rated_year ==1999; qui replace sample=1 if campus==57903002& rated_year ==2000; qui replace sample=1 if campus==188901002& rated_year ==2000; qui replace sample=1 if campus==178914001& rated_year ==1994; qui replace sample=1 if campus==212910001& rated_year ==2008; qui replace sample=1 if campus==240901002& rated_year ==2006; qui replace sample=1 if campus==220905001& rated_year ==1999; qui replace sample=1 if campus==188901002& rated_year ==2007; qui replace sample=1 if campus==101913002& rated_year ==2000; qui replace sample=1 if campus==66902001& rated_year ==2004; qui replace sample=1 if campus==184904001& rated_year ==1997; qui replace sample=1 if campus==188901004& rated_year ==1994; qui replace sample=1 if campus==156902001& rated_year ==1998; qui replace sample=1 if campus==101912033& rated_year ==1994; qui replace sample=1 if campus==207901001& rated_year ==2005; qui replace sample=1 if campus==28902001& rated_year ==1996; qui replace sample=1 if campus==123914001& rated_year ==2000; qui replace sample=1 if campus==15907002& rated_year ==1999; qui replace sample=1 if campus==188901005& rated_year ==1994; qui replace sample=1 if campus==149901001& rated_year ==1994; qui replace sample=1 if campus==188901005& rated_year ==1998; qui replace sample=1 if campus==61901003& rated_year ==2002; qui replace sample=1 if campus==188901005& rated_year ==2006; qui replace sample=1 if campus==71909002& rated_year ==2001; qui replace sample=1 if campus==188901005& rated_year ==2008; qui replace sample=1 if campus==170906001& rated_year ==2004; qui replace sample=1 if campus==183902001& rated_year ==2005; qui replace sample=1 if campus==66902001& rated_year ==2002; qui replace sample=1 if campus==129902001& rated_year ==2004; qui replace sample=1 if campus==20907001& rated_year ==2005; qui replace sample=1 if campus==184902001& rated_year ==1996; qui replace sample=1 if campus==211902001& rated_year ==2004; qui replace sample=1 if campus==146904001& rated_year ==1996; qui replace sample=1 if campus==101920006& rated_year ==2005; qui replace sample=1 if campus==220905001& rated_year ==2004; qui replace sample=1 if campus==57909004& rated_year ==2002; qui replace sample=1 if campus==108904003& rated_year ==1997; qui replace sample=1 if campus==101907007& rated_year ==1998; qui replace sample=1 if campus==175904001& rated_year ==1999; qui replace sample=1 if campus==93901001& rated_year ==2006; qui replace sample=1 if campus==201910002& rated_year ==1994; qui replace sample=1 if campus==188903001& rated_year ==1999; qui replace sample=1 if campus==129910001& rated_year ==2001; qui replace sample=1 if campus==101910003& rated_year ==1995; qui replace sample=1 if campus==188903001& rated_year ==2003; qui replace sample=1 if campus==227907001& rated_year ==2008; qui replace sample=1 if campus==14907001& rated_year ==1997; qui replace sample=1 if campus==60902001& rated_year ==2002; qui replace sample=1 if campus==234902001& rated_year ==2005; qui replace sample=1 if campus==3905001& rated_year ==2004; qui replace sample=1 if campus==19908001& rated_year ==1999; qui replace sample=1 if campus==178904002& rated_year ==1999; qui replace sample=1 if campus==189901001& rated_year ==1997; qui replace sample=1 if campus==189901001& rated_year ==1999; qui replace sample=1 if campus==205904001& rated_year ==2005; qui replace sample=1 if campus==89901001& rated_year ==1999; qui replace sample=1 if campus==45902001& rated_year ==1999; qui replace sample=1 if campus==15910002& rated_year ==2000; qui replace sample=1 if campus==161923001& rated_year ==1995; qui replace sample=1 if campus==170902001& rated_year ==2004; qui replace sample=1 if campus==92902002& rated_year ==2008; qui replace sample=1 if campus==15907008& rated_year ==2004; qui replace sample=1 if campus==1909001& rated_year ==1994; qui replace sample=1 if campus==14907001& rated_year ==1998; qui replace sample=1 if campus==37907002& rated_year ==2008; qui replace sample=1 if campus==130901001& rated_year ==2000; qui replace sample=1 if campus==211902001& rated_year ==2001; qui replace sample=1 if campus==189902001& rated_year ==2004; qui replace sample=1 if campus==201903001& rated_year ==1998; qui replace sample=1 if campus==61902001& rated_year ==1998; qui replace sample=1 if campus==189902001& rated_year ==2007; qui replace sample=1 if campus==70905002& rated_year ==2008; qui replace sample=1 if campus==46901001& rated_year ==2006; qui replace sample=1 if campus==101914001& rated_year ==1996; qui replace sample=1 if campus==248902001& rated_year ==2006; qui replace sample=1 if campus==230903001& rated_year ==1996; qui replace sample=1 if campus==190903001& rated_year ==2002; qui replace sample=1 if campus==43910005& rated_year ==2003; qui replace sample=1 if campus==215901001& rated_year ==1995; qui replace sample=1 if campus==146905001& rated_year ==1999; qui replace sample=1 if campus==101905001& rated_year ==2005; qui replace sample=1 if campus==145901002& rated_year ==1999; qui replace sample=1 if campus==227913001& rated_year ==2000; qui replace sample=1 if campus==212903001& rated_year ==1997; qui replace sample=1 if campus==191901001& rated_year ==1994; qui replace sample=1 if campus==220905016& rated_year ==1997; qui replace sample=1 if campus==246907001& rated_year ==2001; qui replace sample=1 if campus==191901001& rated_year ==2000; qui replace sample=1 if campus==220905006& rated_year ==2002; qui replace sample=1 if campus==167901001& rated_year ==1997; qui replace sample=1 if campus==191901001& rated_year ==2004; qui replace sample=1 if campus==241903001& rated_year ==1997; qui replace sample=1 if campus==8902001& rated_year ==2001; qui replace sample=1 if campus==145911002& rated_year ==1999; qui replace sample=1 if campus==101912026& rated_year ==1996; qui replace sample=1 if campus==227901005& rated_year ==2008; qui replace sample=1 if campus==250904001& rated_year ==2007; qui replace sample=1 if campus==20906002& rated_year ==2008; qui replace sample=1 if campus==55901001& rated_year ==2002; qui replace sample=1 if campus==43911001& rated_year ==1997; qui replace sample=1 if campus==15915002& rated_year ==1999; qui replace sample=1 if campus==188903001& rated_year ==2007; qui replace sample=1 if campus==220910001& rated_year ==1994; qui replace sample=1 if campus==170902003& rated_year ==1998; qui replace sample=1 if campus==43911001& rated_year ==1999; qui replace sample=1 if campus==57905001& rated_year ==2004; qui replace sample=1 if campus==101912014& rated_year ==1994; qui replace sample=1 if campus==102906001& rated_year ==2006; qui replace sample=1 if campus==227913001& rated_year ==2005; qui replace sample=1 if campus==61902002& rated_year ==1996; qui replace sample=1 if campus==71902005& rated_year ==2002; qui replace sample=1 if campus==101907003& rated_year ==1999; qui replace sample=1 if campus==220907001& rated_year ==1998; qui replace sample=1 if campus==101913002& rated_year ==1996; qui replace sample=1 if campus==101912024& rated_year ==2004; qui replace sample=1 if campus==19902002& rated_year ==2006; qui replace sample=1 if campus==101906001& rated_year ==1997; qui replace sample=1 if campus==57914001& rated_year ==2002; qui replace sample=1 if campus==108913001& rated_year ==1998; qui replace sample=1 if campus==172902001& rated_year ==1994; qui replace sample=1 if campus==170906001& rated_year ==2008; qui replace sample=1 if campus==101912012& rated_year ==1995; qui replace sample=1 if campus==97903001& rated_year ==2000; qui replace sample=1 if campus==116902001& rated_year ==2002; qui replace sample=1 if campus==145911002& rated_year ==2000; qui replace sample=1 if campus==240901002& rated_year ==2002; qui replace sample=1 if campus==81902002& rated_year ==2006; qui replace sample=1 if campus==194903001& rated_year ==1997; qui replace sample=1 if campus==227913001& rated_year ==2007; qui replace sample=1 if campus==202905002& rated_year ==2000; qui replace sample=1 if campus==57920002& rated_year ==2003; qui replace sample=1 if campus==31914001& rated_year ==1997; qui replace sample=1 if campus==15909001& rated_year ==1998; qui replace sample=1 if campus==194904002& rated_year ==1994; qui replace sample=1 if campus==34905002& rated_year ==1997; qui replace sample=1 if campus==220905014& rated_year ==1996; qui replace sample=1 if campus==6902001& rated_year ==2004; qui replace sample=1 if campus==220910001& rated_year ==1996; qui replace sample=1 if campus==101912024& rated_year ==2007; qui replace sample=1 if campus==194904002& rated_year ==2005; qui replace sample=1 if campus==72903001& rated_year ==2005; qui replace sample=1 if campus==194904002& rated_year ==2007; qui replace sample=1 if campus==229901001& rated_year ==2006; qui replace sample=1 if campus==139912001& rated_year ==1998; qui replace sample=1 if campus==220901004& rated_year ==2007; qui replace sample=1 if campus==70907001& rated_year ==1995; qui replace sample=1 if campus==161907001& rated_year ==2003; qui replace sample=1 if campus==15901001& rated_year ==2001; qui replace sample=1 if campus==31903003& rated_year ==1999; qui replace sample=1 if campus==31906001& rated_year ==1994; qui replace sample=1 if campus==181906001& rated_year ==2008; qui replace sample=1 if campus==195901001& rated_year ==2005; qui replace sample=1 if campus==195901001& rated_year ==2007; qui replace sample=1 if campus==81905002& rated_year ==1994; qui replace sample=1 if campus==64901001& rated_year ==1994; qui replace sample=1 if campus==243901001& rated_year ==2004; qui replace sample=1 if campus==119902001& rated_year ==2004; qui replace sample=1 if campus==73903001& rated_year ==2007; qui replace sample=1 if campus==43910004& rated_year ==2007; qui replace sample=1 if campus==246909004& rated_year ==2003; qui replace sample=1 if campus==220905016& rated_year ==1994; qui replace sample=1 if campus==71905002& rated_year ==2000; qui replace sample=1 if campus==109911001& rated_year ==2008; qui replace sample=1 if campus==152907001& rated_year ==1998; qui replace sample=1 if campus==1909001& rated_year ==2001; qui replace sample=1 if campus==94904001& rated_year ==2008; qui replace sample=1 if campus==220905010& rated_year ==2004; qui replace sample=1 if campus==71902004& rated_year ==1996; qui replace sample=1 if campus==129901001& rated_year ==2001; qui replace sample=1 if campus==220910001& rated_year ==2007; qui replace sample=1 if campus==101919001& rated_year ==2003; qui replace sample=1 if campus==92908001& rated_year ==2002; qui replace sample=1 if campus==161920001& rated_year ==1996; qui replace sample=1 if campus==163901001& rated_year ==2006; qui replace sample=1 if campus==212902001& rated_year ==2002; qui replace sample=1 if campus==196903001& rated_year ==2003; qui replace sample=1 if campus==246913001& rated_year ==2002; qui replace sample=1 if campus==196902001& rated_year ==2001; qui replace sample=1 if campus==158906002& rated_year ==1995; qui replace sample=1 if campus==169902001& rated_year ==1999; qui replace sample=1 if campus==227910001& rated_year ==1997; qui replace sample=1 if campus==15905002& rated_year ==2006; qui replace sample=1 if campus==196903001& rated_year ==1997; qui replace sample=1 if campus==57905036& rated_year ==2001; qui replace sample=1 if campus==161906002& rated_year ==1998; qui replace sample=1 if campus==210903002& rated_year ==1998; qui replace sample=1 if campus==15908002& rated_year ==2005; qui replace sample=1 if campus==57905023& rated_year ==2006; qui replace sample=1 if campus==212906001& rated_year ==1994; qui replace sample=1 if campus==101902003& rated_year ==1997; qui replace sample=1 if campus==168901001& rated_year ==1998; qui replace sample=1 if campus==243902001& rated_year ==2002; qui replace sample=1 if campus==126902001& rated_year ==2003; qui replace sample=1 if campus==49903001& rated_year ==1999; qui replace sample=1 if campus==101920006& rated_year ==1997; qui replace sample=1 if campus==28903001& rated_year ==2000; qui replace sample=1 if campus==100905001& rated_year ==1996; qui replace sample=1 if campus==129903001& rated_year ==1997; qui replace sample=1 if campus==7904001& rated_year ==1998; qui replace sample=1 if campus==212902001& rated_year ==2005; qui replace sample=1 if campus==6902001& rated_year ==1995; qui replace sample=1 if campus==24901001& rated_year ==2004; qui replace sample=1 if campus==188903001& rated_year ==1995; qui replace sample=1 if campus==198903001& rated_year ==2001; qui replace sample=1 if campus==31901004& rated_year ==1994; qui replace sample=1 if campus==227913001& rated_year ==1995; qui replace sample=1 if campus==57903002& rated_year ==1995; qui replace sample=1 if campus==108909001& rated_year ==2007; qui replace sample=1 if campus==57905034& rated_year ==1997; qui replace sample=1 if campus==101912034& rated_year ==2000; qui replace sample=1 if campus==198905002& rated_year ==1999; qui replace sample=1 if campus==198905002& rated_year ==2001; qui replace sample=1 if campus==109905001& rated_year ==2006; qui replace sample=1 if campus==57905023& rated_year ==2003; qui replace sample=1 if campus==15915001& rated_year ==2001; qui replace sample=1 if campus==67903001& rated_year ==2005; qui replace sample=1 if campus==61912001& rated_year ==2002; qui replace sample=1 if campus==75902001& rated_year ==2008; qui replace sample=1 if campus==30906001& rated_year ==2006; qui replace sample=1 if campus==80901001& rated_year ==2001; qui replace sample=1 if campus==81902002& rated_year ==2007; qui replace sample=1 if campus==1904001& rated_year ==1997; qui replace sample=1 if campus==101911003& rated_year ==2000; qui replace sample=1 if campus==128902001& rated_year ==2003; qui replace sample=1 if campus==245902001& rated_year ==2005; qui replace sample=1 if campus==102902001& rated_year ==1994; qui replace sample=1 if campus==31912001& rated_year ==2004; qui replace sample=1 if campus==161901001& rated_year ==2003; qui replace sample=1 if campus==139911002& rated_year ==2002; qui replace sample=1 if campus==220905002& rated_year ==1995; qui replace sample=1 if campus==19912001& rated_year ==2005; qui replace sample=1 if campus==181906001& rated_year ==1998; qui replace sample=1 if campus==122901002& rated_year ==2008; qui replace sample=1 if campus==246913001& rated_year ==1995; qui replace sample=1 if campus==127904001& rated_year ==2008; qui replace sample=1 if campus==161921001& rated_year ==2005; qui replace sample=1 if campus==81904001& rated_year ==1998; qui replace sample=1 if campus==123907001& rated_year ==1998; qui replace sample=1 if campus==188901005& rated_year ==2002; qui replace sample=1 if campus==228901001& rated_year ==1997; qui replace sample=1 if campus==199902002& rated_year ==2001; qui replace sample=1 if campus==181905001& rated_year ==2005; qui replace sample=1 if campus==168901001& rated_year ==2000; qui replace sample=1 if campus==199902002& rated_year ==2005; qui replace sample=1 if campus==101912002& rated_year ==2006; qui replace sample=1 if campus==214901001& rated_year ==1996; qui replace sample=1 if campus==178902001& rated_year ==2001; qui replace sample=1 if campus==14906002& rated_year ==2000; qui replace sample=1 if campus==57905006& rated_year ==2008; qui replace sample=1 if campus==178904003& rated_year ==1997; qui replace sample=1 if campus==200901001& rated_year ==1994; qui replace sample=1 if campus==220905006& rated_year ==2001; qui replace sample=1 if campus==31901003& rated_year ==1999; qui replace sample=1 if campus==111901001& rated_year ==2006; qui replace sample=1 if campus==170902005& rated_year ==2007; qui replace sample=1 if campus==97903001& rated_year ==2006; qui replace sample=1 if campus==57910002& rated_year ==1997; qui replace sample=1 if campus==57905018& rated_year ==2004; qui replace sample=1 if campus==146901001& rated_year ==2005; qui replace sample=1 if campus==101912012& rated_year ==2001; qui replace sample=1 if campus==80901001& rated_year ==2008; qui replace sample=1 if campus==212901001& rated_year ==1997; qui replace sample=1 if campus==36903001& rated_year ==1995; qui replace sample=1 if campus==146905001& rated_year ==1994; qui replace sample=1 if campus==200902001& rated_year ==1998; qui replace sample=1 if campus==91902001& rated_year ==2000; qui replace sample=1 if campus==121905001& rated_year ==1999; qui replace sample=1 if campus==101912034& rated_year ==2007; qui replace sample=1 if campus==200902001& rated_year ==2007; qui replace sample=1 if campus==49901001& rated_year ==2005; qui replace sample=1 if campus==15916001& rated_year ==1999; qui replace sample=1 if campus==8902001& rated_year ==2005; qui replace sample=1 if campus==129901001& rated_year ==1999; qui replace sample=1 if campus==15907008& rated_year ==1999; qui replace sample=1 if campus==107904001& rated_year ==2000; qui replace sample=1 if campus==191901001& rated_year ==2008; qui replace sample=1 if campus==249906001& rated_year ==1994; qui replace sample=1 if campus==84904001& rated_year ==2000; qui replace sample=1 if campus==25901001& rated_year ==1999; qui replace sample=1 if campus==14906002& rated_year ==2007; qui replace sample=1 if campus==220902001& rated_year ==1997; qui replace sample=1 if campus==71902002& rated_year ==2005; qui replace sample=1 if campus==129901001& rated_year ==2008; qui replace sample=1 if campus==247901001& rated_year ==2002; qui replace sample=1 if campus==170902005& rated_year ==1999; qui replace sample=1 if campus==129904001& rated_year ==2007; qui replace sample=1 if campus==57903002& rated_year ==1994; qui replace sample=1 if campus==94902001& rated_year ==1996; qui replace sample=1 if campus==34907001& rated_year ==1997; qui replace sample=1 if campus==210901001& rated_year ==1996; qui replace sample=1 if campus==66903002& rated_year ==2004; qui replace sample=1 if campus==20905002& rated_year ==1997; qui replace sample=1 if campus==10902001& rated_year ==2005; qui replace sample=1 if campus==15912001& rated_year ==2005; qui replace sample=1 if campus==92908001& rated_year ==2004; qui replace sample=1 if campus==201902001& rated_year ==2000; qui replace sample=1 if campus==97902001& rated_year ==1997; qui replace sample=1 if campus==101912006& rated_year ==1997; qui replace sample=1 if campus==15910003& rated_year ==2007; qui replace sample=1 if campus==101912005& rated_year ==1996; qui replace sample=1 if campus==20905001& rated_year ==1996; qui replace sample=1 if campus==57905008& rated_year ==2003; qui replace sample=1 if campus==34903001& rated_year ==1998; qui replace sample=1 if campus==140908001& rated_year ==1995; qui replace sample=1 if campus==116902001& rated_year ==2001; qui replace sample=1 if campus==10902001& rated_year ==2002; qui replace sample=1 if campus==201903001& rated_year ==2000; qui replace sample=1 if campus==201903001& rated_year ==2003; qui replace sample=1 if campus==201903001& rated_year ==2004; qui replace sample=1 if campus==201903001& rated_year ==2006; qui replace sample=1 if campus==246909004& rated_year ==1997; qui replace sample=1 if campus==117901001& rated_year ==1994; qui replace sample=1 if campus==101912005& rated_year ==2002; qui replace sample=1 if campus==15905003& rated_year ==2003; qui replace sample=1 if campus==101912001& rated_year ==2008; qui replace sample=1 if campus==70903002& rated_year ==1999; qui replace sample=1 if campus==248902001& rated_year ==2004; qui replace sample=1 if campus==201908001& rated_year ==1996; qui replace sample=1 if campus==121905001& rated_year ==1996; qui replace sample=1 if campus==126911001& rated_year ==1994; qui replace sample=1 if campus==57905097& rated_year ==1995; qui replace sample=1 if campus==201908001& rated_year ==2007; qui replace sample=1 if campus==100907001& rated_year ==2000; qui replace sample=1 if campus==94901001& rated_year ==1997; qui replace sample=1 if campus==201910002& rated_year ==2008; qui replace sample=1 if campus==15915001& rated_year ==2003; qui replace sample=1 if campus==201913001& rated_year ==1997; qui replace sample=1 if campus==101915001& rated_year ==1999; qui replace sample=1 if campus==4901001& rated_year ==2004; qui replace sample=1 if campus==245903001& rated_year ==1995; qui replace sample=1 if campus==125902001& rated_year ==2006; qui replace sample=1 if campus==246909003& rated_year ==2004; qui replace sample=1 if campus==201913001& rated_year ==2007; qui replace sample=1 if campus==101909002& rated_year ==1994; qui replace sample=1 if campus==57905002& rated_year ==1996; qui replace sample=1 if campus==215901001& rated_year ==1998; qui replace sample=1 if campus==194903001& rated_year ==2007; qui replace sample=1 if campus==101911002& rated_year ==1998; qui replace sample=1 if campus==84908001& rated_year ==2002; qui replace sample=1 if campus==126908001& rated_year ==1996; qui replace sample=1 if campus==201914001& rated_year ==2006; qui replace sample=1 if campus==15906001& rated_year ==2008; qui replace sample=1 if campus==62903001& rated_year ==2005; qui replace sample=1 if campus==220905002& rated_year ==2005; qui replace sample=1 if campus==70907001& rated_year ==1996; qui replace sample=1 if campus==71905001& rated_year ==2004; qui replace sample=1 if campus==161909001& rated_year ==2001; qui replace sample=1 if campus==57905039& rated_year ==1998; qui replace sample=1 if campus==31909001& rated_year ==1997; qui replace sample=1 if campus==210905001& rated_year ==1995; qui replace sample=1 if campus==202905002& rated_year ==2004; qui replace sample=1 if campus==56901001& rated_year ==1998; qui replace sample=1 if campus==239903001& rated_year ==2001; qui replace sample=1 if campus==101912006& rated_year ==2002; qui replace sample=1 if campus==203901002& rated_year ==1998; qui replace sample=1 if campus==15908002& rated_year ==2002; qui replace sample=1 if campus==161910001& rated_year ==1998; qui replace sample=1 if campus==227901003& rated_year ==2003; qui replace sample=1 if campus==101917002& rated_year ==2008; qui replace sample=1 if campus==203901002& rated_year ==2002; qui replace sample=1 if campus==101912008& rated_year ==1995; qui replace sample=1 if campus==203901002& rated_year ==2008; qui replace sample=1 if campus==145906001& rated_year ==1999; qui replace sample=1 if campus==149901001& rated_year ==1999; qui replace sample=1 if campus==107904001& rated_year ==2003; qui replace sample=1 if campus==101902003& rated_year ==1996; qui replace sample=1 if campus==31901003& rated_year ==1995; qui replace sample=1 if campus==121904001& rated_year ==1998; qui replace sample=1 if campus==15913001& rated_year ==2005; qui replace sample=1 if campus==204901001& rated_year ==1995; qui replace sample=1 if campus==43907002& rated_year ==2006; qui replace sample=1 if campus==15907007& rated_year ==1995; qui replace sample=1 if campus==176903001& rated_year ==2008; qui replace sample=1 if campus==50910001& rated_year ==1998; qui replace sample=1 if campus==102903002& rated_year ==1996; qui replace sample=1 if campus==246909003& rated_year ==1998; qui replace sample=1 if campus==101907005& rated_year ==2007; qui replace sample=1 if campus==15915006& rated_year ==1998; qui replace sample=1 if campus==204901001& rated_year ==2006; qui replace sample=1 if campus==61906001& rated_year ==1998; qui replace sample=1 if campus==79906001& rated_year ==1997; qui replace sample=1 if campus==107910001& rated_year ==1999; qui replace sample=1 if campus==204904001& rated_year ==2000; qui replace sample=1 if campus==170907001& rated_year ==1994; qui replace sample=1 if campus==13901001& rated_year ==2001; qui replace sample=1 if campus==246909003& rated_year ==1995; qui replace sample=1 if campus==147903002& rated_year ==2005; qui replace sample=1 if campus==91918001& rated_year ==1999; qui replace sample=1 if campus==31901002& rated_year ==2008; qui replace sample=1 if campus==71909002& rated_year ==2004; qui replace sample=1 if campus==205901001& rated_year ==2003; qui replace sample=1 if campus==205901001& rated_year ==2005; qui replace sample=1 if campus==234904001& rated_year ==2001; qui replace sample=1 if campus==84904001& rated_year ==1998; qui replace sample=1 if campus==31903001& rated_year ==2005; qui replace sample=1 if campus==205902001& rated_year ==1996; qui replace sample=1 if campus==19906001& rated_year ==2004; qui replace sample=1 if campus==172905002& rated_year ==2004; qui replace sample=1 if campus==194903001& rated_year ==2000; qui replace sample=1 if campus==95903001& rated_year ==1999; qui replace sample=1 if campus==101905001& rated_year ==1998; qui replace sample=1 if campus==79907004& rated_year ==1994; qui replace sample=1 if campus==122901002& rated_year ==2001; qui replace sample=1 if campus==126907001& rated_year ==1999; qui replace sample=1 if campus==11901001& rated_year ==1995; qui replace sample=1 if campus==47902001& rated_year ==1998; qui replace sample=1 if campus==246911001& rated_year ==1997; qui replace sample=1 if campus==201910002& rated_year ==2001; qui replace sample=1 if campus==100907001& rated_year ==2002; qui replace sample=1 if campus==57909003& rated_year ==2008; qui replace sample=1 if campus==152906001& rated_year ==2000; qui replace sample=1 if campus==205904001& rated_year ==2003; qui replace sample=1 if campus==139912001& rated_year ==2007; qui replace sample=1 if campus==172905002& rated_year ==2006; qui replace sample=1 if campus==156902001& rated_year ==2008; qui replace sample=1 if campus==209901001& rated_year ==1998; qui replace sample=1 if campus==205905001& rated_year ==1997; qui replace sample=1 if campus==205905001& rated_year ==1998; qui replace sample=1 if campus==16901001& rated_year ==2001; qui replace sample=1 if campus==218901001& rated_year ==2003; qui replace sample=1 if campus==101915003& rated_year ==2007; qui replace sample=1 if campus==176901001& rated_year ==2001; qui replace sample=1 if campus==57903001& rated_year ==2000; qui replace sample=1 if campus==205906001& rated_year ==1994; qui replace sample=1 if campus==28903001& rated_year ==2003; qui replace sample=1 if campus==250905001& rated_year ==1997; qui replace sample=1 if campus==205906001& rated_year ==1999; qui replace sample=1 if campus==205906001& rated_year ==2002; qui replace sample=1 if campus==220905014& rated_year ==2006; qui replace sample=1 if campus==1909001& rated_year ==1996; qui replace sample=1 if campus==246909001& rated_year ==1998; qui replace sample=1 if campus==205906001& rated_year ==2008; qui replace sample=1 if campus==92907001& rated_year ==2000; qui replace sample=1 if campus==109905001& rated_year ==2008; qui replace sample=1 if campus==43904001& rated_year ==1994; qui replace sample=1 if campus==57905036& rated_year ==1996; qui replace sample=1 if campus==185903001& rated_year ==2004; qui replace sample=1 if campus==61902002& rated_year ==1994; qui replace sample=1 if campus==46902001& rated_year ==2004; qui replace sample=1 if campus==95903001& rated_year ==1996; qui replace sample=1 if campus==205907001& rated_year ==1998; qui replace sample=1 if campus==31909001& rated_year ==2002; qui replace sample=1 if campus==241906001& rated_year ==2003; qui replace sample=1 if campus==145911002& rated_year ==1996; qui replace sample=1 if campus==116909001& rated_year ==2005; qui replace sample=1 if campus==205907001& rated_year ==2006; qui replace sample=1 if campus==25909001& rated_year ==1995; qui replace sample=1 if campus==57905021& rated_year ==1997; qui replace sample=1 if campus==146906001& rated_year ==2002; qui replace sample=1 if campus==31911001& rated_year ==2008; qui replace sample=1 if campus==31916005& rated_year ==1998; qui replace sample=1 if campus==46902001& rated_year ==1997; qui replace sample=1 if campus==123914001& rated_year ==2004; qui replace sample=1 if campus==101917002& rated_year ==2006; qui replace sample=1 if campus==206901001& rated_year ==1999; qui replace sample=1 if campus==229903001& rated_year ==2003; qui replace sample=1 if campus==206901001& rated_year ==2003; qui replace sample=1 if campus==206901001& rated_year ==2007; qui replace sample=1 if campus==79901002& rated_year ==2007; qui replace sample=1 if campus==93904002& rated_year ==2007; qui replace sample=1 if campus==101902004& rated_year ==1994; qui replace sample=1 if campus==70903002& rated_year ==1997; qui replace sample=1 if campus==108903001& rated_year ==2003; qui replace sample=1 if campus==79901002& rated_year ==2004; qui replace sample=1 if campus==57913001& rated_year ==2008; qui replace sample=1 if campus==43907002& rated_year ==2005; qui replace sample=1 if campus==84910001& rated_year ==2004; qui replace sample=1 if campus==158905001& rated_year ==2005; qui replace sample=1 if campus==101912001& rated_year ==2006; qui replace sample=1 if campus==126908001& rated_year ==2002; qui replace sample=1 if campus==20908001& rated_year ==2004; qui replace sample=1 if campus==116901001& rated_year ==1995; qui replace sample=1 if campus==15907008& rated_year ==2000; qui replace sample=1 if campus==47901001& rated_year ==2006; qui replace sample=1 if campus==250903001& rated_year ==2007; qui replace sample=1 if campus==101912001& rated_year ==2004; qui replace sample=1 if campus==126902001& rated_year ==1997; qui replace sample=1 if campus==251901001& rated_year ==2006; qui replace sample=1 if campus==144901001& rated_year ==1997; qui replace sample=1 if campus==71905003& rated_year ==2006; qui replace sample=1 if campus==91910001& rated_year ==1996; qui replace sample=1 if campus==220905008& rated_year ==2001; qui replace sample=1 if campus==101912017& rated_year ==2001; qui replace sample=1 if campus==61905001& rated_year ==2005; qui replace sample=1 if campus==126905001& rated_year ==1998; qui replace sample=1 if campus==172905002& rated_year ==2005; qui replace sample=1 if campus==57914001& rated_year ==2004; qui replace sample=1 if campus==31912001& rated_year ==1995; qui replace sample=1 if campus==134901001& rated_year ==1994; qui replace sample=1 if campus==34901001& rated_year ==2001; qui replace sample=1 if campus==245902001& rated_year ==2001; qui replace sample=1 if campus==19901001& rated_year ==2002; qui replace sample=1 if campus==57912004& rated_year ==1996; qui replace sample=1 if campus==79906001& rated_year ==2005; qui replace sample=1 if campus==20902001& rated_year ==2003; qui replace sample=1 if campus==116901001& rated_year ==1997; qui replace sample=1 if campus==15910001& rated_year ==2004; qui replace sample=1 if campus==105902001& rated_year ==2003; qui replace sample=1 if campus==205904001& rated_year ==1994; qui replace sample=1 if campus==20905002& rated_year ==2004; qui replace sample=1 if campus==188903001& rated_year ==1997; qui replace sample=1 if campus==33902001& rated_year ==2006; qui replace sample=1 if campus==57905009& rated_year ==2000; qui replace sample=1 if campus==122901002& rated_year ==1997; qui replace sample=1 if campus==64903001& rated_year ==1999; qui replace sample=1 if campus==101907003& rated_year ==2004; qui replace sample=1 if campus==57905026& rated_year ==1996; qui replace sample=1 if campus==221911001& rated_year ==1997; qui replace sample=1 if campus==147903002& rated_year ==2001; qui replace sample=1 if campus==234902001& rated_year ==1997; qui replace sample=1 if campus==129910001& rated_year ==1996; qui replace sample=1 if campus==164901001& rated_year ==2005; qui replace sample=1 if campus==1908002& rated_year ==2004; qui replace sample=1 if campus==240903002& rated_year ==2006; qui replace sample=1 if campus==139912001& rated_year ==1995; qui replace sample=1 if campus==101912033& rated_year ==1996; qui replace sample=1 if campus==178902001& rated_year ==1997; qui replace sample=1 if campus==161920001& rated_year ==2003; qui replace sample=1 if campus==79907004& rated_year ==2003; qui replace sample=1 if campus==191901001& rated_year ==2005; qui replace sample=1 if campus==209901001& rated_year ==2003; qui replace sample=1 if campus==31911001& rated_year ==2000; qui replace sample=1 if campus==209901001& rated_year ==2007; qui replace sample=1 if campus==209901001& rated_year ==2008; qui replace sample=1 if campus==227907001& rated_year ==2006; qui replace sample=1 if campus==201908001& rated_year ==2004; qui replace sample=1 if campus==176901001& rated_year ==2006; qui replace sample=1 if campus==74917001& rated_year ==1995; qui replace sample=1 if campus==15901001& rated_year ==1995; qui replace sample=1 if campus==246913001& rated_year ==2001; qui replace sample=1 if campus==236901002& rated_year ==1996; qui replace sample=1 if campus==72902001& rated_year ==2003; qui replace sample=1 if campus==210901001& rated_year ==1997; qui replace sample=1 if campus==210901001& rated_year ==1999; qui replace sample=1 if campus==178904003& rated_year ==2003; qui replace sample=1 if campus==98901001& rated_year ==2007; qui replace sample=1 if campus==100905001& rated_year ==2006; qui replace sample=1 if campus==210902001& rated_year ==1994; qui replace sample=1 if campus==146901001& rated_year ==1998; qui replace sample=1 if campus==227901003& rated_year ==1999; qui replace sample=1 if campus==165901044& rated_year ==1999; qui replace sample=1 if campus==101902001& rated_year ==2007; qui replace sample=1 if campus==210902001& rated_year ==2001; qui replace sample=1 if campus==146902002& rated_year ==2000; qui replace sample=1 if campus==157901001& rated_year ==1997; qui replace sample=1 if campus==196903001& rated_year ==2000; qui replace sample=1 if campus==14907001& rated_year ==2003; qui replace sample=1 if campus==228901001& rated_year ==2000; qui replace sample=1 if campus==71909002& rated_year ==1995; qui replace sample=1 if campus==120905001& rated_year ==2002; qui replace sample=1 if campus==15917001& rated_year ==2004; qui replace sample=1 if campus==79907002& rated_year ==2001; qui replace sample=1 if campus==95901001& rated_year ==1996; qui replace sample=1 if campus==240903002& rated_year ==1996; qui replace sample=1 if campus==246902001& rated_year ==1997; qui replace sample=1 if campus==212902001& rated_year ==2008; qui replace sample=1 if campus==71902003& rated_year ==2001; qui replace sample=1 if campus==146906001& rated_year ==2005; qui replace sample=1 if campus==36903001& rated_year ==1994; qui replace sample=1 if campus==101907004& rated_year ==1997; qui replace sample=1 if campus==57905037& rated_year ==2002; qui replace sample=1 if campus==43902001& rated_year ==2008; qui replace sample=1 if campus==210905001& rated_year ==1996; qui replace sample=1 if campus==210905001& rated_year ==1997; qui replace sample=1 if campus==71902010& rated_year ==2007; qui replace sample=1 if campus==31911001& rated_year ==2005; qui replace sample=1 if campus==210905001& rated_year ==2002; qui replace sample=1 if campus==184902001& rated_year ==2001; qui replace sample=1 if campus==15907007& rated_year ==1997; qui replace sample=1 if campus==161910001& rated_year ==2005; qui replace sample=1 if campus==15915001& rated_year ==2000; qui replace sample=1 if campus==101911003& rated_year ==1996; qui replace sample=1 if campus==101902002& rated_year ==1997; qui replace sample=1 if campus==121905001& rated_year ==1995; qui replace sample=1 if campus==205906001& rated_year ==2007; qui replace sample=1 if campus==20902001& rated_year ==2002; qui replace sample=1 if campus==71905004& rated_year ==2002; qui replace sample=1 if campus==175907001& rated_year ==2006; qui replace sample=1 if campus==101920003& rated_year ==2002; qui replace sample=1 if campus==46901001& rated_year ==1997; qui replace sample=1 if campus==211902001& rated_year ==2006; qui replace sample=1 if campus==67903001& rated_year ==2001; qui replace sample=1 if campus==165901044& rated_year ==2005; qui replace sample=1 if campus==184908001& rated_year ==2006; qui replace sample=1 if campus==91905001& rated_year ==1997; qui replace sample=1 if campus==6902001& rated_year ==1999; qui replace sample=1 if campus==101911002& rated_year ==2006; qui replace sample=1 if campus==71905003& rated_year ==2004; qui replace sample=1 if campus==108910001& rated_year ==2000; qui replace sample=1 if campus==136901001& rated_year ==2008; qui replace sample=1 if campus==212901001& rated_year ==1996; qui replace sample=1 if campus==212901001& rated_year ==1999; qui replace sample=1 if campus==158902001& rated_year ==2004; qui replace sample=1 if campus==212901001& rated_year ==2008; qui replace sample=1 if campus==212902001& rated_year ==1994; qui replace sample=1 if campus==212902001& rated_year ==1997; qui replace sample=1 if campus==101912011& rated_year ==2000; qui replace sample=1 if campus==212902001& rated_year ==2000; qui replace sample=1 if campus==196902001& rated_year ==1998; qui replace sample=1 if campus==212902001& rated_year ==2004; qui replace sample=1 if campus==174908001& rated_year ==2000; qui replace sample=1 if campus==43901001& rated_year ==2002; qui replace sample=1 if campus==101912020& rated_year ==2003; qui replace sample=1 if campus==127904001& rated_year ==1998; qui replace sample=1 if campus==161909001& rated_year ==2006; qui replace sample=1 if campus==57905006& rated_year ==1995; qui replace sample=1 if campus==84910003& rated_year ==1995; qui replace sample=1 if campus==229905001& rated_year ==2002; qui replace sample=1 if campus==161919001& rated_year ==2000; qui replace sample=1 if campus==8901001& rated_year ==2002; qui replace sample=1 if campus==94901001& rated_year ==2003; qui replace sample=1 if campus==161916001& rated_year ==1999; qui replace sample=1 if campus==31901002& rated_year ==1995; qui replace sample=1 if campus==212903001& rated_year ==1998; qui replace sample=1 if campus==84904001& rated_year ==2004; qui replace sample=1 if campus==187904001& rated_year ==2001; qui replace sample=1 if campus==61908001& rated_year ==2003; qui replace sample=1 if campus==71905005& rated_year ==1997; qui replace sample=1 if campus==31914001& rated_year ==1999; qui replace sample=1 if campus==107901001& rated_year ==2006; qui replace sample=1 if campus==114904001& rated_year ==2001; qui replace sample=1 if campus==174904002& rated_year ==2003; qui replace sample=1 if campus==184907001& rated_year ==1994; qui replace sample=1 if campus==107902001& rated_year ==1994; qui replace sample=1 if campus==235902001& rated_year ==1994; qui replace sample=1 if campus==202903001& rated_year ==2003; qui replace sample=1 if campus==227901006& rated_year ==2003; qui replace sample=1 if campus==43907002& rated_year ==2000; qui replace sample=1 if campus==7902001& rated_year ==1998; qui replace sample=1 if campus==212904002& rated_year ==2004; qui replace sample=1 if campus==246908001& rated_year ==1999; qui replace sample=1 if campus==33904001& rated_year ==1995; qui replace sample=1 if campus==19907002& rated_year ==2006; qui replace sample=1 if campus==201902001& rated_year ==2001; qui replace sample=1 if campus==15910001& rated_year ==1994; qui replace sample=1 if campus==15907008& rated_year ==2002; qui replace sample=1 if campus==212905001& rated_year ==2001; qui replace sample=1 if campus==10901001& rated_year ==1995; qui replace sample=1 if campus==57905007& rated_year ==1999; qui replace sample=1 if campus==108906002& rated_year ==1997; qui replace sample=1 if campus==227901010& rated_year ==1999; qui replace sample=1 if campus==212905001& rated_year ==2007; qui replace sample=1 if campus==212905001& rated_year ==2008; qui replace sample=1 if campus==212905003& rated_year ==1996; qui replace sample=1 if campus==126903001& rated_year ==2004; qui replace sample=1 if campus==116916001& rated_year ==2000; qui replace sample=1 if campus==178902001& rated_year ==2002; qui replace sample=1 if campus==70915001& rated_year ==1999; qui replace sample=1 if campus==100905001& rated_year ==1995; qui replace sample=1 if campus==212905003& rated_year ==2005; qui replace sample=1 if campus==121904001& rated_year ==1997; qui replace sample=1 if campus==57905015& rated_year ==2005; qui replace sample=1 if campus==205901001& rated_year ==2006; qui replace sample=1 if campus==33902001& rated_year ==1996; qui replace sample=1 if campus==95905001& rated_year ==1998; qui replace sample=1 if campus==152906001& rated_year ==2001; qui replace sample=1 if campus==15915006& rated_year ==1997; qui replace sample=1 if campus==189902001& rated_year ==1997; qui replace sample=1 if campus==57903002& rated_year ==2007; qui replace sample=1 if campus==71905004& rated_year ==2005; qui replace sample=1 if campus==20906002& rated_year ==1999; qui replace sample=1 if campus==1907001& rated_year ==2003; qui replace sample=1 if campus==116916001& rated_year ==1996; qui replace sample=1 if campus==1904001& rated_year ==1995; qui replace sample=1 if campus==71908001& rated_year ==1999; qui replace sample=1 if campus==240901001& rated_year ==1995; qui replace sample=1 if campus==175904001& rated_year ==1996; qui replace sample=1 if campus==101905001& rated_year ==2004; qui replace sample=1 if campus==237904002& rated_year ==2006; qui replace sample=1 if campus==105902001& rated_year ==1999; qui replace sample=1 if campus==152902001& rated_year ==2003; qui replace sample=1 if campus==49903001& rated_year ==2000; qui replace sample=1 if campus==7901001& rated_year ==2003; qui replace sample=1 if campus==101912006& rated_year ==2004; qui replace sample=1 if campus==101905001& rated_year ==2006; qui replace sample=1 if campus==227901013& rated_year ==1996; qui replace sample=1 if campus==15905001& rated_year ==1994; qui replace sample=1 if campus==178913001& rated_year ==2006; qui replace sample=1 if campus==243903001& rated_year ==1997; qui replace sample=1 if campus==101917004& rated_year ==1998; qui replace sample=1 if campus==161918001& rated_year ==2004; qui replace sample=1 if campus==31916004& rated_year ==2004; qui replace sample=1 if campus==117904001& rated_year ==1999; qui replace sample=1 if campus==57911001& rated_year ==2002; qui replace sample=1 if campus==212906001& rated_year ==2006; qui replace sample=1 if campus==92908001& rated_year ==1996; qui replace sample=1 if campus==68901045& rated_year ==2004; qui replace sample=1 if campus==68901002& rated_year ==2007; qui replace sample=1 if campus==57905021& rated_year ==1996; qui replace sample=1 if campus==30902001& rated_year ==2002; qui replace sample=1 if campus==92901001& rated_year ==2006; qui replace sample=1 if campus==101912002& rated_year ==1994; qui replace sample=1 if campus==212909001& rated_year ==1996; qui replace sample=1 if campus==62901001& rated_year ==1996; qui replace sample=1 if campus==158905001& rated_year ==1999; qui replace sample=1 if campus==57912004& rated_year ==1999; qui replace sample=1 if campus==233901001& rated_year ==2000; qui replace sample=1 if campus==25902001& rated_year ==1997; qui replace sample=1 if campus==134901001& rated_year ==2007; qui replace sample=1 if campus==205905001& rated_year ==2006; qui replace sample=1 if campus==133901001& rated_year ==2007; qui replace sample=1 if campus==161916001& rated_year ==2005; qui replace sample=1 if campus==220905015& rated_year ==2003; qui replace sample=1 if campus==80901001& rated_year ==2005; qui replace sample=1 if campus==169901001& rated_year ==2008; qui replace sample=1 if campus==101912001& rated_year ==2007; qui replace sample=1 if campus==101912015& rated_year ==1996; qui replace sample=1 if campus==227901002& rated_year ==2001; qui replace sample=1 if campus==27903001& rated_year ==2003; qui replace sample=1 if campus==27904001& rated_year ==2004; qui replace sample=1 if campus==184907001& rated_year ==2003; qui replace sample=1 if campus==71902010& rated_year ==2008; qui replace sample=1 if campus==57905013& rated_year ==2002; qui replace sample=1 if campus==84906001& rated_year ==2002; qui replace sample=1 if campus==172902001& rated_year ==1997; qui replace sample=1 if campus==169901001& rated_year ==1994; qui replace sample=1 if campus==116908001& rated_year ==2003; qui replace sample=1 if campus==108909001& rated_year ==1995; qui replace sample=1 if campus==232903002& rated_year ==2002; qui replace sample=1 if campus==21902005& rated_year ==1997; qui replace sample=1 if campus==40902001& rated_year ==1999; qui replace sample=1 if campus==123910007& rated_year ==1995; qui replace sample=1 if campus==36903001& rated_year ==2001; qui replace sample=1 if campus==101914001& rated_year ==2000; qui replace sample=1 if campus==247901001& rated_year ==1996; qui replace sample=1 if campus==213901001& rated_year ==2001; qui replace sample=1 if campus==213901001& rated_year ==2002; qui replace sample=1 if campus==179901001& rated_year ==1998; qui replace sample=1 if campus==107904001& rated_year ==1997; qui replace sample=1 if campus==244903001& rated_year ==2005; qui replace sample=1 if campus==161903001& rated_year ==1999; qui replace sample=1 if campus==31909001& rated_year ==2003; qui replace sample=1 if campus==214901001& rated_year ==1994; qui replace sample=1 if campus==19903001& rated_year ==2008; qui replace sample=1 if campus==246907001& rated_year ==1997; qui replace sample=1 if campus==214901001& rated_year ==1999; qui replace sample=1 if campus==196903001& rated_year ==1996; qui replace sample=1 if campus==178902001& rated_year ==2000; qui replace sample=1 if campus==161907001& rated_year ==1998; qui replace sample=1 if campus==116908001& rated_year ==1996; qui replace sample=1 if campus==246908001& rated_year ==2005; qui replace sample=1 if campus==39903001& rated_year ==2004; qui replace sample=1 if campus==206901001& rated_year ==2001; qui replace sample=1 if campus==84902001& rated_year ==1994; qui replace sample=1 if campus==214903001& rated_year ==1994; qui replace sample=1 if campus==214903001& rated_year ==1997; qui replace sample=1 if campus==214903001& rated_year ==1999; qui replace sample=1 if campus==3907001& rated_year ==1994; qui replace sample=1 if campus==54902001& rated_year ==2006; qui replace sample=1 if campus==128902001& rated_year ==1998; qui replace sample=1 if campus==214903001& rated_year ==2004; qui replace sample=1 if campus==243905002& rated_year ==1996; qui replace sample=1 if campus==31916004& rated_year ==2001; qui replace sample=1 if campus==29901001& rated_year ==2005; qui replace sample=1 if campus==57905001& rated_year ==1999; qui replace sample=1 if campus==57909003& rated_year ==1996; qui replace sample=1 if campus==79907001& rated_year ==2002; qui replace sample=1 if campus==15907002& rated_year ==1995; qui replace sample=1 if campus==123907005& rated_year ==1997; qui replace sample=1 if campus==77902001& rated_year ==2005; qui replace sample=1 if campus==49907001& rated_year ==1998; qui replace sample=1 if campus==212904002& rated_year ==2007; qui replace sample=1 if campus==62903001& rated_year ==2001; qui replace sample=1 if campus==215901001& rated_year ==2000; qui replace sample=1 if campus==45903001& rated_year ==2007; qui replace sample=1 if campus==101912025& rated_year ==2004; qui replace sample=1 if campus==142901001& rated_year ==1997; qui replace sample=1 if campus==22901001& rated_year ==1997; qui replace sample=1 if campus==61901003& rated_year ==1996; qui replace sample=1 if campus==28903001& rated_year ==1998; qui replace sample=1 if campus==50910001& rated_year ==2008; qui replace sample=1 if campus==40902001& rated_year ==2000; qui replace sample=1 if campus==97902001& rated_year ==2007; qui replace sample=1 if campus==91902001& rated_year ==2001; qui replace sample=1 if campus==137901001& rated_year ==2007; qui replace sample=1 if campus==180901001& rated_year ==1999; qui replace sample=1 if campus==3906001& rated_year ==1998; qui replace sample=1 if campus==92901001& rated_year ==2001; qui replace sample=1 if campus==126907001& rated_year ==2003; qui replace sample=1 if campus==220905001& rated_year ==1998; qui replace sample=1 if campus==227913001& rated_year ==2002; qui replace sample=1 if campus==91906002& rated_year ==2002; qui replace sample=1 if campus==25901001& rated_year ==1995; qui replace sample=1 if campus==246908001& rated_year ==1996; qui replace sample=1 if campus==116901001& rated_year ==2005; qui replace sample=1 if campus==81902002& rated_year ==1994; qui replace sample=1 if campus==246909001& rated_year ==2002; qui replace sample=1 if campus==77902001& rated_year ==2004; qui replace sample=1 if campus==31916004& rated_year ==2003; qui replace sample=1 if campus==101912004& rated_year ==1996; qui replace sample=1 if campus==43904001& rated_year ==1997; qui replace sample=1 if campus==243905002& rated_year ==2008; qui replace sample=1 if campus==13903001& rated_year ==1998; qui replace sample=1 if campus==174908001& rated_year ==2007; qui replace sample=1 if campus==98904001& rated_year ==2002; qui replace sample=1 if campus==19907002& rated_year ==2000; qui replace sample=1 if campus==14902001& rated_year ==2007; qui replace sample=1 if campus==200902001& rated_year ==2000; qui replace sample=1 if campus==172905002& rated_year ==1994; qui replace sample=1 if campus==205901001& rated_year ==1994; qui replace sample=1 if campus==101912017& rated_year ==2003; qui replace sample=1 if campus==174903001& rated_year ==2006; qui replace sample=1 if campus==170907001& rated_year ==2006; qui replace sample=1 if campus==108913001& rated_year ==1995; qui replace sample=1 if campus==34905002& rated_year ==1994; qui replace sample=1 if campus==219903001& rated_year ==1995; qui replace sample=1 if campus==200901001& rated_year ==1997; qui replace sample=1 if campus==31912001& rated_year ==2001; qui replace sample=1 if campus==219903001& rated_year ==1999; qui replace sample=1 if campus==229901001& rated_year ==1995; qui replace sample=1 if campus==205906001& rated_year ==2006; qui replace sample=1 if campus==227901013& rated_year ==2002; qui replace sample=1 if campus==200901001& rated_year ==1996; qui replace sample=1 if campus==57910002& rated_year ==2007; qui replace sample=1 if campus==101912005& rated_year ==2004; qui replace sample=1 if campus==234904001& rated_year ==2000; qui replace sample=1 if campus==25901001& rated_year ==1997; qui replace sample=1 if campus==126901001& rated_year ==2008; qui replace sample=1 if campus==191901001& rated_year ==1996; qui replace sample=1 if campus==128902001& rated_year ==1995; qui replace sample=1 if campus==57910003& rated_year ==1994; qui replace sample=1 if campus==205907001& rated_year ==1994; qui replace sample=1 if campus==178914001& rated_year ==2003; qui replace sample=1 if campus==1904001& rated_year ==1996; qui replace sample=1 if campus==71902010& rated_year ==2006; qui replace sample=1 if campus==57903001& rated_year ==1997; qui replace sample=1 if campus==161903001& rated_year ==1995; qui replace sample=1 if campus==15910005& rated_year ==2002; qui replace sample=1 if campus==71902001& rated_year ==2008; qui replace sample=1 if campus==83903001& rated_year ==1994; qui replace sample=1 if campus==220905005& rated_year ==1996; qui replace sample=1 if campus==161907001& rated_year ==2007; qui replace sample=1 if campus==57905025& rated_year ==1995; qui replace sample=1 if campus==129905001& rated_year ==2002; qui replace sample=1 if campus==207901001& rated_year ==2002; qui replace sample=1 if campus==218901001& rated_year ==2002; qui replace sample=1 if campus==6902001& rated_year ==2008; qui replace sample=1 if campus==101916001& rated_year ==2004; qui replace sample=1 if campus==101915002& rated_year ==2002; qui replace sample=1 if campus==220901004& rated_year ==1994; qui replace sample=1 if campus==215901001& rated_year ==2001; qui replace sample=1 if campus==15907004& rated_year ==2007; qui replace sample=1 if campus==71909002& rated_year ==2005; qui replace sample=1 if campus==175903001& rated_year ==1996; qui replace sample=1 if campus==31901001& rated_year ==1995; qui replace sample=1 if campus==163903001& rated_year ==2002; qui replace sample=1 if campus==15907002& rated_year ==2000; qui replace sample=1 if campus==100905001& rated_year ==2000; qui replace sample=1 if campus==108909001& rated_year ==1994; qui replace sample=1 if campus==228901001& rated_year ==1996; qui replace sample=1 if campus==226905001& rated_year ==2006; qui replace sample=1 if campus==221901001& rated_year ==2007; qui replace sample=1 if campus==71902010& rated_year ==1997; qui replace sample=1 if campus==101902001& rated_year ==2006; qui replace sample=1 if campus==84910001& rated_year ==1998; qui replace sample=1 if campus==101914001& rated_year ==2004; qui replace sample=1 if campus==15907007& rated_year ==2000; qui replace sample=1 if campus==220905005& rated_year ==1997; qui replace sample=1 if campus==46901001& rated_year ==2007; qui replace sample=1 if campus==69902001& rated_year ==2001; qui replace sample=1 if campus==43910004& rated_year ==2003; qui replace sample=1 if campus==227901013& rated_year ==2007; qui replace sample=1 if campus==184909001& rated_year ==1997; qui replace sample=1 if campus==20902001& rated_year ==2007; qui replace sample=1 if campus==221901001& rated_year ==1994; qui replace sample=1 if campus==46901001& rated_year ==2002; qui replace sample=1 if campus==247906001& rated_year ==1995; qui replace sample=1 if campus==200904001& rated_year ==1997; qui replace sample=1 if campus==14909002& rated_year ==2004; qui replace sample=1 if campus==107905001& rated_year ==2006; qui replace sample=1 if campus==199902002& rated_year ==1999; qui replace sample=1 if campus==31901003& rated_year ==1997; qui replace sample=1 if campus==202905002& rated_year ==1996; qui replace sample=1 if campus==220905014& rated_year ==2001; qui replace sample=1 if campus==79907001& rated_year ==1996; qui replace sample=1 if campus==31903003& rated_year ==2005; qui replace sample=1 if campus==101905001& rated_year ==2003; qui replace sample=1 if campus==220901004& rated_year ==1995; qui replace sample=1 if campus==220901004& rated_year ==1996; qui replace sample=1 if campus==220901004& rated_year ==1998; qui replace sample=1 if campus==101912017& rated_year ==2008; qui replace sample=1 if campus==243902001& rated_year ==1996; qui replace sample=1 if campus==7904001& rated_year ==2008; qui replace sample=1 if campus==185901001& rated_year ==2002; qui replace sample=1 if campus==191901001& rated_year ==2003; qui replace sample=1 if campus==101912004& rated_year ==1997; qui replace sample=1 if campus==101906001& rated_year ==2004; qui replace sample=1 if campus==71902011& rated_year ==1995; qui replace sample=1 if campus==43905001& rated_year ==2001; qui replace sample=1 if campus==71905002& rated_year ==1999; qui replace sample=1 if campus==144902001& rated_year ==1999; qui replace sample=1 if campus==248901001& rated_year ==2007; qui replace sample=1 if campus==57905015& rated_year ==2001; qui replace sample=1 if campus==232903002& rated_year ==2006; qui replace sample=1 if campus==55901001& rated_year ==2007; qui replace sample=1 if campus==181908001& rated_year ==2004; qui replace sample=1 if campus==126902001& rated_year ==1998; qui replace sample=1 if campus==101905001& rated_year ==2007; qui replace sample=1 if campus==47902001& rated_year ==1997; qui replace sample=1 if campus==108909001& rated_year ==1997; qui replace sample=1 if campus==47901001& rated_year ==2001; qui replace sample=1 if campus==105905001& rated_year ==2002; qui replace sample=1 if campus==204901001& rated_year ==2001; qui replace sample=1 if campus==95901001& rated_year ==2000; qui replace sample=1 if campus==108911001& rated_year ==2002; qui replace sample=1 if campus==161912001& rated_year ==2000; qui replace sample=1 if campus==194903001& rated_year ==2008; qui replace sample=1 if campus==125902001& rated_year ==1996; qui replace sample=1 if campus==227901013& rated_year ==2003; qui replace sample=1 if campus==57905006& rated_year ==2005; qui replace sample=1 if campus==200901001& rated_year ==2006; qui replace sample=1 if campus==57903001& rated_year ==1998; qui replace sample=1 if campus==101911002& rated_year ==2007; qui replace sample=1 if campus==218901001& rated_year ==1996; qui replace sample=1 if campus==61912001& rated_year ==2000; qui replace sample=1 if campus==210901001& rated_year ==2008; qui replace sample=1 if campus==191901002& rated_year ==1999; qui replace sample=1 if campus==94902001& rated_year ==2002; qui replace sample=1 if campus==240903002& rated_year ==1997; qui replace sample=1 if campus==85902001& rated_year ==2008; qui replace sample=1 if campus==16901001& rated_year ==2006; qui replace sample=1 if campus==14906002& rated_year ==2002; qui replace sample=1 if campus==170906001& rated_year ==1998; qui replace sample=1 if campus==220905002& rated_year ==2008; qui replace sample=1 if campus==244903001& rated_year ==2000; qui replace sample=1 if campus==15905003& rated_year ==1998; qui replace sample=1 if campus==246907001& rated_year ==1998; qui replace sample=1 if campus==99903001& rated_year ==1997; qui replace sample=1 if campus==182903001& rated_year ==2005; qui replace sample=1 if campus==220904001& rated_year ==1994; qui replace sample=1 if campus==237902001& rated_year ==2001; qui replace sample=1 if campus==15907001& rated_year ==2006; qui replace sample=1 if campus==31916005& rated_year ==1995; qui replace sample=1 if campus==161907001& rated_year ==2005; qui replace sample=1 if campus==175907001& rated_year ==1998; qui replace sample=1 if campus==227901002& rated_year ==2002; qui replace sample=1 if campus==110907001& rated_year ==1998; qui replace sample=1 if campus==220908001& rated_year ==1999; qui replace sample=1 if campus==93904002& rated_year ==2003; qui replace sample=1 if campus==46902001& rated_year ==2000; qui replace sample=1 if campus==45903001& rated_year ==1997; qui replace sample=1 if campus==24901001& rated_year ==2005; qui replace sample=1 if campus==220902001& rated_year ==2001; qui replace sample=1 if campus==220902001& rated_year ==2002; qui replace sample=1 if campus==191901001& rated_year ==1999; qui replace sample=1 if campus==27904001& rated_year ==1996; qui replace sample=1 if campus==220902001& rated_year ==2007; qui replace sample=1 if campus==101912010& rated_year ==2008; qui replace sample=1 if campus==220905010& rated_year ==1994; qui replace sample=1 if campus==84910003& rated_year ==2000; qui replace sample=1 if campus==240901002& rated_year ==2001; qui replace sample=1 if campus==43905001& rated_year ==1994; qui replace sample=1 if campus==212904002& rated_year ==2000; qui replace sample=1 if campus==101903002& rated_year ==2000; qui replace sample=1 if campus==220902002& rated_year ==2008; qui replace sample=1 if campus==246907001& rated_year ==1996; qui replace sample=1 if campus==178914001& rated_year ==2008; qui replace sample=1 if campus==61902001& rated_year ==2002; qui replace sample=1 if campus==127904001& rated_year ==1999; qui replace sample=1 if campus==57905022& rated_year ==2003; qui replace sample=1 if campus==226906001& rated_year ==2000; qui replace sample=1 if campus==71901001& rated_year ==1994; qui replace sample=1 if campus==31911001& rated_year ==1996; qui replace sample=1 if campus==108913001& rated_year ==1994; qui replace sample=1 if campus==71902006& rated_year ==2008; qui replace sample=1 if campus==221912001& rated_year ==1998; qui replace sample=1 if campus==94902001& rated_year ==2006; qui replace sample=1 if campus==57905026& rated_year ==2002; qui replace sample=1 if campus==101912002& rated_year ==1997; qui replace sample=1 if campus==21902001& rated_year ==2000; qui replace sample=1 if campus==183902001& rated_year ==2008; qui replace sample=1 if campus==74917001& rated_year ==2005; qui replace sample=1 if campus==227904001& rated_year ==2008; qui replace sample=1 if campus==161914003& rated_year ==2003; qui replace sample=1 if campus==212901001& rated_year ==2005; qui replace sample=1 if campus==101913001& rated_year ==1996; qui replace sample=1 if campus==71902005& rated_year ==1998; qui replace sample=1 if campus==71905014& rated_year ==2001; qui replace sample=1 if campus==129901001& rated_year ==2005; qui replace sample=1 if campus==134901001& rated_year ==2000; qui replace sample=1 if campus==28902001& rated_year ==2007; qui replace sample=1 if campus==105906001& rated_year ==2008; qui replace sample=1 if campus==220904001& rated_year ==2002; qui replace sample=1 if campus==220904001& rated_year ==2006; qui replace sample=1 if campus==161920001& rated_year ==2002; qui replace sample=1 if campus==57914002& rated_year ==1994; qui replace sample=1 if campus==220905004& rated_year ==1996; qui replace sample=1 if campus==188901002& rated_year ==2005; qui replace sample=1 if campus==201908001& rated_year ==2003; qui replace sample=1 if campus==225902001& rated_year ==2002; qui replace sample=1 if campus==220904001& rated_year ==2007; qui replace sample=1 if campus==220905015& rated_year ==2004; qui replace sample=1 if campus==220905001& rated_year ==2006; qui replace sample=1 if campus==230908001& rated_year ==1996; qui replace sample=1 if campus==101914002& rated_year ==2002; qui replace sample=1 if campus==14905001& rated_year ==2005; qui replace sample=1 if campus==220905002& rated_year ==1999; qui replace sample=1 if campus==101902004& rated_year ==2002; qui replace sample=1 if campus==228903001& rated_year ==2002; qui replace sample=1 if campus==15901001& rated_year ==2002; qui replace sample=1 if campus==101912015& rated_year ==2004; qui replace sample=1 if campus==84909001& rated_year ==1994; qui replace sample=1 if campus==227901004& rated_year ==2001; qui replace sample=1 if campus==19909001& rated_year ==2006; qui replace sample=1 if campus==210901001& rated_year ==2007; qui replace sample=1 if campus==227901008& rated_year ==1994; qui replace sample=1 if campus==238902001& rated_year ==2006; qui replace sample=1 if campus==220905004& rated_year ==2001; qui replace sample=1 if campus==91910001& rated_year ==1998; qui replace sample=1 if campus==164901001& rated_year ==1994; qui replace sample=1 if campus==220905004& rated_year ==2005; qui replace sample=1 if campus==15915006& rated_year ==2007; qui replace sample=1 if campus==220905009& rated_year ==2004; qui replace sample=1 if campus==220905005& rated_year ==1994; qui replace sample=1 if campus==31905001& rated_year ==2006; qui replace sample=1 if campus==220905005& rated_year ==2001; qui replace sample=1 if campus==154901001& rated_year ==2007; qui replace sample=1 if campus==220905005& rated_year ==2008; qui replace sample=1 if campus==248902001& rated_year ==2007; qui replace sample=1 if campus==228903001& rated_year ==2003; qui replace sample=1 if campus==220905006& rated_year ==2004; qui replace sample=1 if campus==55901001& rated_year ==1998; qui replace sample=1 if campus==170908001& rated_year ==2001; qui replace sample=1 if campus==158906002& rated_year ==1997; qui replace sample=1 if campus==177902001& rated_year ==2008; qui replace sample=1 if campus==15904002& rated_year ==2002; qui replace sample=1 if campus==95903001& rated_year ==1997; qui replace sample=1 if campus==166901002& rated_year ==2004; qui replace sample=1 if campus==220905009& rated_year ==1995; qui replace sample=1 if campus==220905009& rated_year ==1999; qui replace sample=1 if campus==220905009& rated_year ==2000; qui replace sample=1 if campus==14902001& rated_year ==2008; qui replace sample=1 if campus==220905006& rated_year ==1997; qui replace sample=1 if campus==240901001& rated_year ==1996; qui replace sample=1 if campus==101909002& rated_year ==1999; qui replace sample=1 if campus==19905001& rated_year ==1994; qui replace sample=1 if campus==220905010& rated_year ==1997; qui replace sample=1 if campus==49907001& rated_year ==1997; qui replace sample=1 if campus==139912001& rated_year ==2001; qui replace sample=1 if campus==3904001& rated_year ==1998; qui replace sample=1 if campus==161923001& rated_year ==2005; qui replace sample=1 if campus==220905011& rated_year ==1995; qui replace sample=1 if campus==161914002& rated_year ==2003; qui replace sample=1 if campus==31911001& rated_year ==2001; qui replace sample=1 if campus==220905011& rated_year ==1998; qui replace sample=1 if campus==83903001& rated_year ==1998; qui replace sample=1 if campus==203901002& rated_year ==1995; qui replace sample=1 if campus==79907001& rated_year ==2005; qui replace sample=1 if campus==246909003& rated_year ==1997; qui replace sample=1 if campus==243905004& rated_year ==1998; qui replace sample=1 if campus==113902002& rated_year ==1998; qui replace sample=1 if campus==220905014& rated_year ==2002; qui replace sample=1 if campus==57905014& rated_year ==1995; qui replace sample=1 if campus==43918001& rated_year ==1998; qui replace sample=1 if campus==220905015& rated_year ==1999; qui replace sample=1 if campus==220905015& rated_year ==2000; qui replace sample=1 if campus==220905015& rated_year ==2002; qui replace sample=1 if campus==14901001& rated_year ==2001; qui replace sample=1 if campus==25901001& rated_year ==1998; qui replace sample=1 if campus==205901001& rated_year ==1999; qui replace sample=1 if campus==129902001& rated_year ==2006; qui replace sample=1 if campus==205904001& rated_year ==2006; qui replace sample=1 if campus==62901001& rated_year ==1994; qui replace sample=1 if campus==220905016& rated_year ==2004; qui replace sample=1 if campus==227913001& rated_year ==2006; qui replace sample=1 if campus==252901001& rated_year ==2002; qui replace sample=1 if campus==174906001& rated_year ==2005; qui replace sample=1 if campus==107906001& rated_year ==2005; qui replace sample=1 if campus==92906002& rated_year ==2000; qui replace sample=1 if campus==130901001& rated_year ==2004; qui replace sample=1 if campus==172902001& rated_year ==2005; qui replace sample=1 if campus==232903001& rated_year ==1999; qui replace sample=1 if campus==15915001& rated_year ==2008; qui replace sample=1 if campus==57910003& rated_year ==2004; qui replace sample=1 if campus==71905005& rated_year ==1995; qui replace sample=1 if campus==242902001& rated_year ==2004; qui replace sample=1 if campus==71902002& rated_year ==2007; qui replace sample=1 if campus==61912001& rated_year ==2001; qui replace sample=1 if campus==116908001& rated_year ==2006; qui replace sample=1 if campus==25902001& rated_year ==2008; qui replace sample=1 if campus==158905001& rated_year ==2008; qui replace sample=1 if campus==234903001& rated_year ==1997; qui replace sample=1 if campus==187904001& rated_year ==1996; qui replace sample=1 if campus==239901001& rated_year ==1997; qui replace sample=1 if campus==191901002& rated_year ==2003; qui replace sample=1 if campus==57912004& rated_year ==2007; qui replace sample=1 if campus==152909001& rated_year ==1995; qui replace sample=1 if campus==220904001& rated_year ==2001; qui replace sample=1 if campus==71903001& rated_year ==2004; qui replace sample=1 if campus==250907001& rated_year ==2003; qui replace sample=1 if campus==101912025& rated_year ==2008; qui replace sample=1 if campus==178912001& rated_year ==1994; qui replace sample=1 if campus==31916003& rated_year ==2003; qui replace sample=1 if campus==20905002& rated_year ==2005; qui replace sample=1 if campus==108909003& rated_year ==2008; qui replace sample=1 if campus==227910001& rated_year ==2003; qui replace sample=1 if campus==15907008& rated_year ==2003; qui replace sample=1 if campus==31912001& rated_year ==1996; qui replace sample=1 if campus==33904001& rated_year ==1994; qui replace sample=1 if campus==205906001& rated_year ==2004; qui replace sample=1 if campus==113902002& rated_year ==1997; qui replace sample=1 if campus==18907001& rated_year ==2005; qui replace sample=1 if campus==250907001& rated_year ==2008; qui replace sample=1 if campus==7906001& rated_year ==2007; qui replace sample=1 if campus==79907001& rated_year ==1995; qui replace sample=1 if campus==57905036& rated_year ==1999; qui replace sample=1 if campus==129904001& rated_year ==2005; qui replace sample=1 if campus==101912010& rated_year ==2005; qui replace sample=1 if campus==84909001& rated_year ==1996; qui replace sample=1 if campus==194903001& rated_year ==2003; qui replace sample=1 if campus==129910001& rated_year ==1995; qui replace sample=1 if campus==101912001& rated_year ==2005; qui replace sample=1 if campus==129910001& rated_year ==2003; qui replace sample=1 if campus==171901001& rated_year ==1999; qui replace sample=1 if campus==129903001& rated_year ==1996; qui replace sample=1 if campus==246907001& rated_year ==2000; qui replace sample=1 if campus==202903001& rated_year ==2007; qui replace sample=1 if campus==71906001& rated_year ==2006; qui replace sample=1 if campus==234906001& rated_year ==1994; qui replace sample=1 if campus==36902001& rated_year ==2007; qui replace sample=1 if campus==144902001& rated_year ==1998; qui replace sample=1 if campus==108904003& rated_year ==1995; qui replace sample=1 if campus==221912001& rated_year ==1996; qui replace sample=1 if campus==15913001& rated_year ==2006; qui replace sample=1 if campus==101912017& rated_year ==1994; qui replace sample=1 if campus==108904003& rated_year ==1996; qui replace sample=1 if campus==220905008& rated_year ==2007; qui replace sample=1 if campus==172902001& rated_year ==1996; qui replace sample=1 if campus==43907002& rated_year ==2008; qui replace sample=1 if campus==71902005& rated_year ==2007; qui replace sample=1 if campus==182902001& rated_year ==1995; qui replace sample=1 if campus==181908001& rated_year ==1999; qui replace sample=1 if campus==7904001& rated_year ==1996; qui replace sample=1 if campus==90904001& rated_year ==2001; qui replace sample=1 if campus==230902002& rated_year ==2007; qui replace sample=1 if campus==66901001& rated_year ==1996; qui replace sample=1 if campus==31903003& rated_year ==1995; qui replace sample=1 if campus==241906001& rated_year ==1998; qui replace sample=1 if campus==229901001& rated_year ==1997; qui replace sample=1 if campus==161916001& rated_year ==1997; qui replace sample=1 if campus==223901001& rated_year ==2005; qui replace sample=1 if campus==220902001& rated_year ==2003; qui replace sample=1 if campus==57905038& rated_year ==2008; qui replace sample=1 if campus==70915001& rated_year ==1995; qui replace sample=1 if campus==101912024& rated_year ==1994; qui replace sample=1 if campus==176902002& rated_year ==1998; qui replace sample=1 if campus==29901001& rated_year ==1997; qui replace sample=1 if campus==101912014& rated_year ==2007; qui replace sample=1 if campus==116909001& rated_year ==1998; qui replace sample=1 if campus==220920001& rated_year ==2002; qui replace sample=1 if campus==15910004& rated_year ==2006; qui replace sample=1 if campus==2901001& rated_year ==2007; qui replace sample=1 if campus==205903001& rated_year ==2006; qui replace sample=1 if campus==101919002& rated_year ==1996; qui replace sample=1 if campus==109911001& rated_year ==1996; qui replace sample=1 if campus==101912011& rated_year ==2007; qui replace sample=1 if campus==75901001& rated_year ==2003; qui replace sample=1 if campus==57905008& rated_year ==2008; qui replace sample=1 if campus==114904001& rated_year ==2006; qui replace sample=1 if campus==101912025& rated_year ==1994; qui replace sample=1 if campus==227910001& rated_year ==2002; qui replace sample=1 if campus==101913001& rated_year ==2008; qui replace sample=1 if campus==101912017& rated_year ==2006; qui replace sample=1 if campus==79907004& rated_year ==2002; qui replace sample=1 if campus==205907001& rated_year ==2004; qui replace sample=1 if campus==147903002& rated_year ==2007; qui replace sample=1 if campus==129904001& rated_year ==2002; qui replace sample=1 if campus==201913001& rated_year ==2004; qui replace sample=1 if campus==7905001& rated_year ==1997; qui replace sample=1 if campus==101907004& rated_year ==2002; qui replace sample=1 if campus==200901001& rated_year ==2008; qui replace sample=1 if campus==139905001& rated_year ==1998; qui replace sample=1 if campus==77902001& rated_year ==2007; qui replace sample=1 if campus==30902001& rated_year ==2007; qui replace sample=1 if campus==84910001& rated_year ==2002; qui replace sample=1 if campus==40902001& rated_year ==2001; qui replace sample=1 if campus==71905007& rated_year ==2008; qui replace sample=1 if campus==79907004& rated_year ==1999; qui replace sample=1 if campus==109911001& rated_year ==2004; qui replace sample=1 if campus==95905001& rated_year ==2004; qui replace sample=1 if campus==230908001& rated_year ==1994; qui replace sample=1 if campus==174904002& rated_year ==1994; qui replace sample=1 if campus==7906001& rated_year ==2003; qui replace sample=1 if campus==15911001& rated_year ==1999; qui replace sample=1 if campus==14907001& rated_year ==1996; qui replace sample=1 if campus==101924001& rated_year ==2005; qui replace sample=1 if campus==127904001& rated_year ==2000; qui replace sample=1 if campus==211902001& rated_year ==2008; qui replace sample=1 if campus==121903001& rated_year ==1997; qui replace sample=1 if campus==71909002& rated_year ==1999; qui replace sample=1 if campus==20902001& rated_year ==2006; qui replace sample=1 if campus==27904001& rated_year ==2001; qui replace sample=1 if campus==10901001& rated_year ==1999; qui replace sample=1 if campus==84910002& rated_year ==2000; qui replace sample=1 if campus==220920001& rated_year ==2001; qui replace sample=1 if campus==73905001& rated_year ==2002; qui replace sample=1 if campus==214901001& rated_year ==1995; qui replace sample=1 if campus==215901001& rated_year ==2005; qui replace sample=1 if campus==44902001& rated_year ==2007; qui replace sample=1 if campus==57914003& rated_year ==2001; qui replace sample=1 if campus==165901042& rated_year ==1997; qui replace sample=1 if campus==101919002& rated_year ==2003; qui replace sample=1 if campus==71902003& rated_year ==2003; qui replace sample=1 if campus==227904001& rated_year ==2006; qui replace sample=1 if campus==31912001& rated_year ==2007; qui replace sample=1 if campus==203901002& rated_year ==1997; qui replace sample=1 if campus==182902001& rated_year ==1999; qui replace sample=1 if campus==170904002& rated_year ==1995; qui replace sample=1 if campus==241903001& rated_year ==1999; qui replace sample=1 if campus==112908001& rated_year ==2008; qui replace sample=1 if campus==83901001& rated_year ==1998; qui replace sample=1 if campus==140905002& rated_year ==2005; qui replace sample=1 if campus==234903001& rated_year ==1994; qui replace sample=1 if campus==226903002& rated_year ==2007; qui replace sample=1 if campus==145902001& rated_year ==1998; qui replace sample=1 if campus==161923001& rated_year ==2006; qui replace sample=1 if campus==102906001& rated_year ==1994; qui replace sample=1 if campus==185903001& rated_year ==1995; qui replace sample=1 if campus==101912016& rated_year ==1998; qui replace sample=1 if campus==246909001& rated_year ==2005; qui replace sample=1 if campus==165902001& rated_year ==1998; qui replace sample=1 if campus==163908001& rated_year ==1998; qui replace sample=1 if campus==220905011& rated_year ==2001; qui replace sample=1 if campus==246909003& rated_year ==2003; qui replace sample=1 if campus==116901001& rated_year ==2008; qui replace sample=1 if campus==220910001& rated_year ==2000; qui replace sample=1 if campus==152906001& rated_year ==2008; qui replace sample=1 if campus==191901002& rated_year ==2006; qui replace sample=1 if campus==91913001& rated_year ==1994; qui replace sample=1 if campus==101920005& rated_year ==2000; qui replace sample=1 if campus==172905002& rated_year ==1995; qui replace sample=1 if campus==220907001& rated_year ==1996; qui replace sample=1 if campus==101920001& rated_year ==2001; qui replace sample=1 if campus==101912007& rated_year ==1994; qui replace sample=1 if campus==152906001& rated_year ==2006; qui replace sample=1 if campus==178904003& rated_year ==2005; qui replace sample=1 if campus==7906001& rated_year ==1998; qui replace sample=1 if campus==26903002& rated_year ==1999; qui replace sample=1 if campus==227904001& rated_year ==2002; qui replace sample=1 if campus==20908001& rated_year ==1995; qui replace sample=1 if campus==237904002& rated_year ==1994; qui replace sample=1 if campus==210905001& rated_year ==2007; qui replace sample=1 if campus==108906001& rated_year ==2003; qui replace sample=1 if campus==101914005& rated_year ==2003; qui replace sample=1 if campus==176903001& rated_year ==2006; qui replace sample=1 if campus==101903001& rated_year ==2003; qui replace sample=1 if campus==130901001& rated_year ==1998; qui replace sample=1 if campus==187904001& rated_year ==2007; qui replace sample=1 if campus==101920005& rated_year ==1998; qui replace sample=1 if campus==101914001& rated_year ==2001; qui replace sample=1 if campus==101920003& rated_year ==1995; qui replace sample=1 if campus==54902001& rated_year ==2000; qui replace sample=1 if campus==184909001& rated_year ==1994; qui replace sample=1 if campus==1908002& rated_year ==2002; qui replace sample=1 if campus==220908001& rated_year ==1994; qui replace sample=1 if campus==161912001& rated_year ==1996; qui replace sample=1 if campus==35901001& rated_year ==2005; qui replace sample=1 if campus==191901002& rated_year ==2004; qui replace sample=1 if campus==220908001& rated_year ==1998; qui replace sample=1 if campus==220908001& rated_year ==2001; qui replace sample=1 if campus==204901001& rated_year ==1994; qui replace sample=1 if campus==250904001& rated_year ==1996; qui replace sample=1 if campus==49901001& rated_year ==2001; qui replace sample=1 if campus==113905001& rated_year ==2008; qui replace sample=1 if campus==101906001& rated_year ==2002; qui replace sample=1 if campus==243903001& rated_year ==2005; qui replace sample=1 if campus==246907001& rated_year ==2002; qui replace sample=1 if campus==81904001& rated_year ==1996; qui replace sample=1 if campus==49907001& rated_year ==2006; qui replace sample=1 if campus==14902001& rated_year ==2002; qui replace sample=1 if campus==91903001& rated_year ==1999; qui replace sample=1 if campus==140908001& rated_year ==2007; qui replace sample=1 if campus==206901001& rated_year ==1998; qui replace sample=1 if campus==113902002& rated_year ==2000; qui replace sample=1 if campus==61902004& rated_year ==2002; qui replace sample=1 if campus==246913001& rated_year ==1999; qui replace sample=1 if campus==19902002& rated_year ==2008; qui replace sample=1 if campus==93904002& rated_year ==2006; qui replace sample=1 if campus==170903002& rated_year ==2002; qui replace sample=1 if campus==220918001& rated_year ==1999; qui replace sample=1 if campus==123907003& rated_year ==1996; qui replace sample=1 if campus==246911001& rated_year ==2003; qui replace sample=1 if campus==85902001& rated_year ==1996; qui replace sample=1 if campus==100908001& rated_year ==2008; qui replace sample=1 if campus==101912008& rated_year ==1997; qui replace sample=1 if campus==108904001& rated_year ==1997; qui replace sample=1 if campus==21901001& rated_year ==1999; qui replace sample=1 if campus==101920006& rated_year ==1998; qui replace sample=1 if campus==57905026& rated_year ==2007; qui replace sample=1 if campus==15907003& rated_year ==2006; qui replace sample=1 if campus==43910004& rated_year ==2005; qui replace sample=1 if campus==198903001& rated_year ==2008; qui replace sample=1 if campus==220910001& rated_year ==2006; qui replace sample=1 if campus==101919002& rated_year ==1997; qui replace sample=1 if campus==57912004& rated_year ==2005; qui replace sample=1 if campus==15915002& rated_year ==2000; qui replace sample=1 if campus==189901001& rated_year ==2001; qui replace sample=1 if campus==15915003& rated_year ==2007; qui replace sample=1 if campus==185901001& rated_year ==2004; qui replace sample=1 if campus==227901008& rated_year ==1999; qui replace sample=1 if campus==232903002& rated_year ==2001; qui replace sample=1 if campus==220912001& rated_year ==1995; qui replace sample=1 if campus==15915003& rated_year ==1998; qui replace sample=1 if campus==109904001& rated_year ==2003; qui replace sample=1 if campus==57910002& rated_year ==1996; qui replace sample=1 if campus==220912001& rated_year ==2001; qui replace sample=1 if campus==141901001& rated_year ==2004; qui replace sample=1 if campus==15906001& rated_year ==1995; qui replace sample=1 if campus==117904001& rated_year ==2003; qui replace sample=1 if campus==205901001& rated_year ==1996; qui replace sample=1 if campus==101914005& rated_year ==1996; qui replace sample=1 if campus==71902011& rated_year ==2000; qui replace sample=1 if campus==157901001& rated_year ==2002; qui replace sample=1 if campus==71904001& rated_year ==2006; qui replace sample=1 if campus==37904002& rated_year ==2002; qui replace sample=1 if campus==250902001& rated_year ==1998; qui replace sample=1 if campus==178904005& rated_year ==2000; qui replace sample=1 if campus==30901001& rated_year ==2006; qui replace sample=1 if campus==139912001& rated_year ==2008; qui replace sample=1 if campus==248901001& rated_year ==2002; qui replace sample=1 if campus==61908001& rated_year ==2001; qui replace sample=1 if campus==123908001& rated_year ==2000; qui replace sample=1 if campus==15915006& rated_year ==1994; qui replace sample=1 if campus==170902005& rated_year ==2000; qui replace sample=1 if campus==212901001& rated_year ==2001; qui replace sample=1 if campus==18907001& rated_year ==1995; qui replace sample=1 if campus==43910004& rated_year ==2004; qui replace sample=1 if campus==220915001& rated_year ==2005; qui replace sample=1 if campus==57905017& rated_year ==2007; qui replace sample=1 if campus==28903001& rated_year ==1994; qui replace sample=1 if campus==161921001& rated_year ==1998; qui replace sample=1 if campus==108908001& rated_year ==2008; qui replace sample=1 if campus==243903001& rated_year ==2003; qui replace sample=1 if campus==71902011& rated_year ==1996; qui replace sample=1 if campus==112908001& rated_year ==2000; qui replace sample=1 if campus==83901001& rated_year ==2007; qui replace sample=1 if campus==101912016& rated_year ==1995; qui replace sample=1 if campus==250906001& rated_year ==2002; qui replace sample=1 if campus==226903002& rated_year ==2004; qui replace sample=1 if campus==239901001& rated_year ==1996; qui replace sample=1 if campus==68901002& rated_year ==1998; qui replace sample=1 if campus==174906001& rated_year ==2001; qui replace sample=1 if campus==220902002& rated_year ==1999; qui replace sample=1 if campus==37907002& rated_year ==1999; qui replace sample=1 if campus==105906001& rated_year ==2004; qui replace sample=1 if campus==119902001& rated_year ==1999; qui replace sample=1 if campus==232903001& rated_year ==1996; qui replace sample=1 if campus==13901001& rated_year ==1998; qui replace sample=1 if campus==98904001& rated_year ==2008; qui replace sample=1 if campus==70915001& rated_year ==2008; qui replace sample=1 if campus==123907003& rated_year ==2002; qui replace sample=1 if campus==172905002& rated_year ==2008; qui replace sample=1 if campus==32902002& rated_year ==1998; qui replace sample=1 if campus==227901013& rated_year ==2004; qui replace sample=1 if campus==43911001& rated_year ==2001; qui replace sample=1 if campus==108904001& rated_year ==2001; qui replace sample=1 if campus==91908001& rated_year ==2008; qui replace sample=1 if campus==19912001& rated_year ==1996; qui replace sample=1 if campus==175907001& rated_year ==1999; qui replace sample=1 if campus==152910001& rated_year ==1994; qui replace sample=1 if campus==34907001& rated_year ==1994; qui replace sample=1 if campus==15915003& rated_year ==2005; qui replace sample=1 if campus==31912001& rated_year ==1994; qui replace sample=1 if campus==101910002& rated_year ==2008; qui replace sample=1 if campus==221901002& rated_year ==1994; qui replace sample=1 if campus==60902001& rated_year ==2007; qui replace sample=1 if campus==201903001& rated_year ==2001; qui replace sample=1 if campus==250906001& rated_year ==2008; qui replace sample=1 if campus==37901001& rated_year ==2004; qui replace sample=1 if campus==43902001& rated_year ==2006; qui replace sample=1 if campus==57905015& rated_year ==2006; qui replace sample=1 if campus==20906002& rated_year ==2004; qui replace sample=1 if campus==57914003& rated_year ==1997; qui replace sample=1 if campus==98904001& rated_year ==2003; qui replace sample=1 if campus==126907001& rated_year ==2004; qui replace sample=1 if campus==116906001& rated_year ==1997; qui replace sample=1 if campus==68901002& rated_year ==1997; qui replace sample=1 if campus==101902001& rated_year ==2005; qui replace sample=1 if campus==84901001& rated_year ==2001; qui replace sample=1 if campus==16902001& rated_year ==2002; qui replace sample=1 if campus==101902003& rated_year ==2002; qui replace sample=1 if campus==79910001& rated_year ==2004; qui replace sample=1 if campus==145901002& rated_year ==2004; qui replace sample=1 if campus==84911001& rated_year ==1994; qui replace sample=1 if campus==210902001& rated_year ==2006; qui replace sample=1 if campus==15915001& rated_year ==2002; qui replace sample=1 if campus==25901001& rated_year ==2008; qui replace sample=1 if campus==21901001& rated_year ==2006; qui replace sample=1 if campus==15904001& rated_year ==2003; qui replace sample=1 if campus==181907001& rated_year ==2006; qui replace sample=1 if campus==205903001& rated_year ==1996; qui replace sample=1 if campus==97903001& rated_year ==1999; qui replace sample=1 if campus==246908001& rated_year ==2002; qui replace sample=1 if campus==178904001& rated_year ==1996; qui replace sample=1 if campus==37904002& rated_year ==2008; qui replace sample=1 if campus==21902005& rated_year ==1998; qui replace sample=1 if campus==57905021& rated_year ==2001; qui replace sample=1 if campus==220905004& rated_year ==2003; qui replace sample=1 if campus==126901001& rated_year ==1995; qui replace sample=1 if campus==20901001& rated_year ==1999; qui replace sample=1 if campus==116908001& rated_year ==2007; qui replace sample=1 if campus==178903001& rated_year ==2006; qui replace sample=1 if campus==228903001& rated_year ==2008; qui replace sample=1 if campus==188901001& rated_year ==1994; qui replace sample=1 if campus==15906001& rated_year ==2004; qui replace sample=1 if campus==237904002& rated_year ==1997; qui replace sample=1 if campus==235901001& rated_year ==1998; qui replace sample=1 if campus==91914001& rated_year ==2003; qui replace sample=1 if campus==170902005& rated_year ==1997; qui replace sample=1 if campus==220905010& rated_year ==1996; qui replace sample=1 if campus==212910001& rated_year ==1996; qui replace sample=1 if campus==108904001& rated_year ==2008; qui replace sample=1 if campus==220918001& rated_year ==2002; qui replace sample=1 if campus==220918001& rated_year ==2003; qui replace sample=1 if campus==35902001& rated_year ==1994; qui replace sample=1 if campus==220918001& rated_year ==2006; qui replace sample=1 if campus==143901001& rated_year ==2007; qui replace sample=1 if campus==101912025& rated_year ==2002; qui replace sample=1 if campus==14908001& rated_year ==1996; qui replace sample=1 if campus==101902004& rated_year ==2000; qui replace sample=1 if campus==175902001& rated_year ==2000; qui replace sample=1 if campus==15908002& rated_year ==1997; qui replace sample=1 if campus==61908001& rated_year ==2005; qui replace sample=1 if campus==100904001& rated_year ==2003; qui replace sample=1 if campus==11902001& rated_year ==1998; qui replace sample=1 if campus==101905001& rated_year ==1995; qui replace sample=1 if campus==243902001& rated_year ==1994; qui replace sample=1 if campus==230902002& rated_year ==1995; qui replace sample=1 if campus==61911001& rated_year ==1999; qui replace sample=1 if campus==199902002& rated_year ==2002; qui replace sample=1 if campus==122901002& rated_year ==1999; qui replace sample=1 if campus==14909002& rated_year ==1997; qui replace sample=1 if campus==15907001& rated_year ==2000; qui replace sample=1 if campus==30903001& rated_year ==1997; qui replace sample=1 if campus==152903001& rated_year ==1997; qui replace sample=1 if campus==7904001& rated_year ==2006; qui replace sample=1 if campus==112901002& rated_year ==2007; qui replace sample=1 if campus==81904001& rated_year ==1995; qui replace sample=1 if campus==220920001& rated_year ==1996; qui replace sample=1 if campus==84911001& rated_year ==1996; qui replace sample=1 if campus==220920001& rated_year ==2000; qui replace sample=1 if campus==177901001& rated_year ==2005; qui replace sample=1 if campus==223901001& rated_year ==1994; qui replace sample=1 if campus==196902001& rated_year ==2003; qui replace sample=1 if campus==71905002& rated_year ==1994; qui replace sample=1 if campus==11902001& rated_year ==2004; qui replace sample=1 if campus==101919001& rated_year ==1995; qui replace sample=1 if campus==230908001& rated_year ==2000; qui replace sample=1 if campus==246909001& rated_year ==2001; qui replace sample=1 if campus==40901001& rated_year ==1999; qui replace sample=1 if campus==116906001& rated_year ==1996; qui replace sample=1 if campus==59901001& rated_year ==2001; qui replace sample=1 if campus==229901001& rated_year ==1996; qui replace sample=1 if campus==113903002& rated_year ==1995; qui replace sample=1 if campus==102901002& rated_year ==2007; qui replace sample=1 if campus==43903001& rated_year ==2008; qui replace sample=1 if campus==36902001& rated_year ==2004; qui replace sample=1 if campus==65901001& rated_year ==1999; qui replace sample=1 if campus==75902001& rated_year ==2005; qui replace sample=1 if campus==94902001& rated_year ==2003; qui replace sample=1 if campus==92906002& rated_year ==1998; qui replace sample=1 if campus==220905005& rated_year ==2003; qui replace sample=1 if campus==239901001& rated_year ==2001; qui replace sample=1 if campus==246909004& rated_year ==1994; qui replace sample=1 if campus==220904001& rated_year ==1996; qui replace sample=1 if campus==101912010& rated_year ==1996; qui replace sample=1 if campus==101911003& rated_year ==2006; qui replace sample=1 if campus==110907001& rated_year ==2003; qui replace sample=1 if campus==243905002& rated_year ==2000; qui replace sample=1 if campus==57905007& rated_year ==2008; qui replace sample=1 if campus==251902001& rated_year ==2000; qui replace sample=1 if campus==129905001& rated_year ==2008; qui replace sample=1 if campus==117901001& rated_year ==1996; qui replace sample=1 if campus==101909002& rated_year ==1998; qui replace sample=1 if campus==205904001& rated_year ==1999; qui replace sample=1 if campus==178903001& rated_year ==2007; qui replace sample=1 if campus==84911001& rated_year ==1999; qui replace sample=1 if campus==84904001& rated_year ==2007; qui replace sample=1 if campus==31916004& rated_year ==2007; qui replace sample=1 if campus==57905006& rated_year ==2002; qui replace sample=1 if campus==134901001& rated_year ==2006; qui replace sample=1 if campus==220915001& rated_year ==1996; qui replace sample=1 if campus==101912016& rated_year ==1997; qui replace sample=1 if campus==221901001& rated_year ==1999; qui replace sample=1 if campus==221901001& rated_year ==2000; qui replace sample=1 if campus==101916001& rated_year ==1999; qui replace sample=1 if campus==93901001& rated_year ==2000; qui replace sample=1 if campus==168901001& rated_year ==2001; qui replace sample=1 if campus==178912001& rated_year ==2003; qui replace sample=1 if campus==220905001& rated_year ==2008; qui replace sample=1 if campus==220901004& rated_year ==2002; qui replace sample=1 if campus==126905001& rated_year ==2001; qui replace sample=1 if campus==221901002& rated_year ==2002; qui replace sample=1 if campus==221901002& rated_year ==2003; qui replace sample=1 if campus==221901002& rated_year ==2004; qui replace sample=1 if campus==177901001& rated_year ==1995; qui replace sample=1 if campus==101902005& rated_year ==2001; qui replace sample=1 if campus==109904001& rated_year ==1997; qui replace sample=1 if campus==227901010& rated_year ==1997; qui replace sample=1 if campus==233901001& rated_year ==2006; qui replace sample=1 if campus==91906002& rated_year ==2003; qui replace sample=1 if campus==161910001& rated_year ==2007; qui replace sample=1 if campus==246909004& rated_year ==2007; qui replace sample=1 if campus==91902001& rated_year ==2002; qui replace sample=1 if campus==105906001& rated_year ==1999; qui replace sample=1 if campus==188901002& rated_year ==1999; qui replace sample=1 if campus==146901001& rated_year ==2006; qui replace sample=1 if campus==163903001& rated_year ==1997; qui replace sample=1 if campus==45905002& rated_year ==2008; qui replace sample=1 if campus==227901007& rated_year ==2006; qui replace sample=1 if campus==108902001& rated_year ==2005; qui replace sample=1 if campus==243905002& rated_year ==1995; qui replace sample=1 if campus==61912001& rated_year ==1999; qui replace sample=1 if campus==161906002& rated_year ==1997; qui replace sample=1 if campus==202903001& rated_year ==2001; qui replace sample=1 if campus==106901001& rated_year ==2006; qui replace sample=1 if campus==161908002& rated_year ==1995; qui replace sample=1 if campus==133903001& rated_year ==2005; qui replace sample=1 if campus==71902006& rated_year ==2007; qui replace sample=1 if campus==71909002& rated_year ==1994; qui replace sample=1 if campus==227901003& rated_year ==1998; qui replace sample=1 if campus==201910002& rated_year ==2006; qui replace sample=1 if campus==77902001& rated_year ==1998; qui replace sample=1 if campus==178904003& rated_year ==2004; qui replace sample=1 if campus==108911001& rated_year ==1996; qui replace sample=1 if campus==228903001& rated_year ==2001; qui replace sample=1 if campus==210903002& rated_year ==2002; qui replace sample=1 if campus==31903002& rated_year ==1997; qui replace sample=1 if campus==163904001& rated_year ==2008; qui replace sample=1 if campus==19903001& rated_year ==2007; qui replace sample=1 if campus==84909001& rated_year ==2003; qui replace sample=1 if campus==101914005& rated_year ==1994; qui replace sample=1 if campus==93901001& rated_year ==1995; qui replace sample=1 if campus==220905001& rated_year ==2002; qui replace sample=1 if campus==229905001& rated_year ==2001; qui replace sample=1 if campus==101912026& rated_year ==2007; qui replace sample=1 if campus==57905024& rated_year ==2004; qui replace sample=1 if campus==105904001& rated_year ==2005; qui replace sample=1 if campus==220905008& rated_year ==1994; qui replace sample=1 if campus==26901001& rated_year ==1996; qui replace sample=1 if campus==71902009& rated_year ==1998; qui replace sample=1 if campus==200902001& rated_year ==2002; qui replace sample=1 if campus==127901001& rated_year ==1998; qui replace sample=1 if campus==195901001& rated_year ==2006; qui replace sample=1 if campus==245903001& rated_year ==2002; qui replace sample=1 if campus==71901002& rated_year ==1997; qui replace sample=1 if campus==47901001& rated_year ==2007; qui replace sample=1 if campus==184903001& rated_year ==2006; qui replace sample=1 if campus==15917001& rated_year ==1994; qui replace sample=1 if campus==129902001& rated_year ==2003; qui replace sample=1 if campus==57905021& rated_year ==2008; qui replace sample=1 if campus==109911001& rated_year ==2005; qui replace sample=1 if campus==221911001& rated_year ==1995; qui replace sample=1 if campus==221911001& rated_year ==1996; qui replace sample=1 if campus==74903001& rated_year ==2004; qui replace sample=1 if campus==164901001& rated_year ==2001; qui replace sample=1 if campus==241904001& rated_year ==2007; qui replace sample=1 if campus==166904001& rated_year ==2002; qui replace sample=1 if campus==105904001& rated_year ==2001; qui replace sample=1 if campus==172902001& rated_year ==2006; qui replace sample=1 if campus==221912001& rated_year ==1994; qui replace sample=1 if campus==13903001& rated_year ==2000; qui replace sample=1 if campus==221912001& rated_year ==2000; qui replace sample=1 if campus==232903001& rated_year ==2006; qui replace sample=1 if campus==152903001& rated_year ==1994; qui replace sample=1 if campus==178912001& rated_year ==2007; qui replace sample=1 if campus==144901001& rated_year ==2008; qui replace sample=1 if campus==170904002& rated_year ==1998; qui replace sample=1 if campus==161923001& rated_year ==2008; qui replace sample=1 if campus==57905033& rated_year ==2007; qui replace sample=1 if campus==243901001& rated_year ==1999; qui replace sample=1 if campus==227901007& rated_year ==1996; qui replace sample=1 if campus==71904001& rated_year ==2001; qui replace sample=1 if campus==122901002& rated_year ==2004; qui replace sample=1 if campus==158902001& rated_year ==2002; qui replace sample=1 if campus==30901001& rated_year ==1998; qui replace sample=1 if campus==117904001& rated_year ==2005; qui replace sample=1 if campus==223901001& rated_year ==1999; qui replace sample=1 if campus==81905002& rated_year ==1995; qui replace sample=1 if campus==30903001& rated_year ==1994; qui replace sample=1 if campus==71908001& rated_year ==2003; qui replace sample=1 if campus==223901001& rated_year ==2007; qui replace sample=1 if campus==161923001& rated_year ==1994; qui replace sample=1 if campus==201903001& rated_year ==1996; qui replace sample=1 if campus==220905002& rated_year ==1998; qui replace sample=1 if campus==32902002& rated_year ==2008; qui replace sample=1 if campus==14910001& rated_year ==1996; qui replace sample=1 if campus==14901001& rated_year ==2008; qui replace sample=1 if campus==166901002& rated_year ==2002; qui replace sample=1 if campus==57905032& rated_year ==1997; qui replace sample=1 if campus==198905002& rated_year ==2003; qui replace sample=1 if campus==220918001& rated_year ==1994; qui replace sample=1 if campus==161922001& rated_year ==2001; qui replace sample=1 if campus==57904001& rated_year ==2003; qui replace sample=1 if campus==39902001& rated_year ==2002; qui replace sample=1 if campus==31903003& rated_year ==1998; qui replace sample=1 if campus==97903001& rated_year ==2002; qui replace sample=1 if campus==202903001& rated_year ==1995; qui replace sample=1 if campus==123907002& rated_year ==1999; qui replace sample=1 if campus==188901002& rated_year ==1998; qui replace sample=1 if campus==125905001& rated_year ==2000; qui replace sample=1 if campus==57905025& rated_year ==2006; qui replace sample=1 if campus==146905001& rated_year ==1997; qui replace sample=1 if campus==25909001& rated_year ==2005; qui replace sample=1 if campus==225902001& rated_year ==2000; qui replace sample=1 if campus==84910001& rated_year ==2005; qui replace sample=1 if campus==250906001& rated_year ==2006; qui replace sample=1 if campus==150901001& rated_year ==1997; qui replace sample=1 if campus==61902001& rated_year ==2007; qui replace sample=1 if campus==101910003& rated_year ==1997; qui replace sample=1 if campus==36902001& rated_year ==1997; qui replace sample=1 if campus==101912017& rated_year ==2007; qui replace sample=1 if campus==163901001& rated_year ==1994; qui replace sample=1 if campus==101910002& rated_year ==1994; qui replace sample=1 if campus==232903001& rated_year ==2001; qui replace sample=1 if campus==101917001& rated_year ==2005; qui replace sample=1 if campus==178904004& rated_year ==1998; qui replace sample=1 if campus==84909001& rated_year ==1997; qui replace sample=1 if campus==212901001& rated_year ==2002; qui replace sample=1 if campus==1903001& rated_year ==2003; qui replace sample=1 if campus==62901001& rated_year ==2002; qui replace sample=1 if campus==31903003& rated_year ==2004; qui replace sample=1 if campus==20904001& rated_year ==1998; qui replace sample=1 if campus==91914001& rated_year ==1995; qui replace sample=1 if campus==137901001& rated_year ==2002; qui replace sample=1 if campus==176901001& rated_year ==2008; qui replace sample=1 if campus==15905003& rated_year ==1999; qui replace sample=1 if campus==57905021& rated_year ==2007; qui replace sample=1 if campus==94902001& rated_year ==1995; qui replace sample=1 if campus==161923001& rated_year ==2001; qui replace sample=1 if campus==191901001& rated_year ==1998; qui replace sample=1 if campus==57909004& rated_year ==1998; qui replace sample=1 if campus==101919002& rated_year ==2002; qui replace sample=1 if campus==229904001& rated_year ==2000; qui replace sample=1 if campus==166904001& rated_year ==2004; qui replace sample=1 if campus==113903002& rated_year ==1998; qui replace sample=1 if campus==191901002& rated_year ==2007; qui replace sample=1 if campus==186902001& rated_year ==2002; qui replace sample=1 if campus==108906006& rated_year ==1995; qui replace sample=1 if campus==61908001& rated_year ==2004; qui replace sample=1 if campus==68901045& rated_year ==1997; qui replace sample=1 if campus==196903001& rated_year ==1995; qui replace sample=1 if campus==102902001& rated_year ==2007; qui replace sample=1 if campus==70908001& rated_year ==1999; qui replace sample=1 if campus==139911002& rated_year ==2001; qui replace sample=1 if campus==20905002& rated_year ==2007; qui replace sample=1 if campus==101912014& rated_year ==1996; qui replace sample=1 if campus==107901001& rated_year ==1994; qui replace sample=1 if campus==90904001& rated_year ==2007; qui replace sample=1 if campus==212904002& rated_year ==1999; qui replace sample=1 if campus==252901001& rated_year ==2003; qui replace sample=1 if campus==95901001& rated_year ==2004; qui replace sample=1 if campus==226903002& rated_year ==1998; qui replace sample=1 if campus==201914001& rated_year ==1996; qui replace sample=1 if campus==212905003& rated_year ==1998; qui replace sample=1 if campus==15905002& rated_year ==2001; qui replace sample=1 if campus==220904001& rated_year ==2008; qui replace sample=1 if campus==188903001& rated_year ==1994; qui replace sample=1 if campus==102901002& rated_year ==2000; qui replace sample=1 if campus==178914001& rated_year ==2002; qui replace sample=1 if campus==57913001& rated_year ==1996; qui replace sample=1 if campus==101919002& rated_year ==1994; qui replace sample=1 if campus==71904001& rated_year ==2007; qui replace sample=1 if campus==212905003& rated_year ==2007; qui replace sample=1 if campus==229901001& rated_year ==2007; qui replace sample=1 if campus==6902001& rated_year ==2003; qui replace sample=1 if campus==155901002& rated_year ==2007; qui replace sample=1 if campus==187907002& rated_year ==2004; qui replace sample=1 if campus==246913001& rated_year ==2000; qui replace sample=1 if campus==71909002& rated_year ==2003; qui replace sample=1 if campus==26902001& rated_year ==2007; qui replace sample=1 if campus==101917002& rated_year ==1995; qui replace sample=1 if campus==161921001& rated_year ==2008; qui replace sample=1 if campus==83901001& rated_year ==2006; qui replace sample=1 if campus==126908001& rated_year ==1999; qui replace sample=1 if campus==100905001& rated_year ==1999; qui replace sample=1 if campus==67903001& rated_year ==2002; qui replace sample=1 if campus==226905001& rated_year ==1994; qui replace sample=1 if campus==34907001& rated_year ==2002; qui replace sample=1 if campus==226905001& rated_year ==1997; qui replace sample=1 if campus==226905001& rated_year ==1998; qui replace sample=1 if campus==226905001& rated_year ==1999; qui replace sample=1 if campus==57909004& rated_year ==2007; qui replace sample=1 if campus==226905001& rated_year ==2001; qui replace sample=1 if campus==226905001& rated_year ==2005; qui replace sample=1 if campus==102905001& rated_year ==1998; qui replace sample=1 if campus==214901001& rated_year ==2008; qui replace sample=1 if campus==74903001& rated_year ==2003; qui replace sample=1 if campus==226905001& rated_year ==2008; qui replace sample=1 if campus==221901001& rated_year ==2002; qui replace sample=1 if campus==246902001& rated_year ==2008; qui replace sample=1 if campus==145901002& rated_year ==2007; qui replace sample=1 if campus==101912014& rated_year ==1998; qui replace sample=1 if campus==140905002& rated_year ==1998; qui replace sample=1 if campus==227901002& rated_year ==2003; qui replace sample=1 if campus==199902002& rated_year ==2006; qui replace sample=1 if campus==10901001& rated_year ==2002; qui replace sample=1 if campus==175902001& rated_year ==2001; qui replace sample=1 if campus==227901004& rated_year ==2002; qui replace sample=1 if campus==79907006& rated_year ==2007; qui replace sample=1 if campus==109911001& rated_year ==1999; qui replace sample=1 if campus==28902001& rated_year ==1999; qui replace sample=1 if campus==31903002& rated_year ==1999; qui replace sample=1 if campus==189902001& rated_year ==2003; qui replace sample=1 if campus==79901002& rated_year ==2008; qui replace sample=1 if campus==79901001& rated_year ==1998; qui replace sample=1 if campus==226906001& rated_year ==1994; qui replace sample=1 if campus==226906001& rated_year ==1996; qui replace sample=1 if campus==226906001& rated_year ==1998; qui replace sample=1 if campus==226906001& rated_year ==2001; qui replace sample=1 if campus==129903001& rated_year ==1995; qui replace sample=1 if campus==102904002& rated_year ==2007; qui replace sample=1 if campus==108912001& rated_year ==2006; qui replace sample=1 if campus==246902001& rated_year ==2006; qui replace sample=1 if campus==178904005& rated_year ==2003; qui replace sample=1 if campus==71905001& rated_year ==1995; qui replace sample=1 if campus==15907005& rated_year ==1995; qui replace sample=1 if campus==250904001& rated_year ==2001; qui replace sample=1 if campus==21901001& rated_year ==1997; qui replace sample=1 if campus==188901004& rated_year ==1997; qui replace sample=1 if campus==101916001& rated_year ==1998; qui replace sample=1 if campus==101912010& rated_year ==1995; qui replace sample=1 if campus==97902001& rated_year ==1996; qui replace sample=1 if campus==205904001& rated_year ==1998; qui replace sample=1 if campus==58906001& rated_year ==2002; qui replace sample=1 if campus==191901002& rated_year ==1995; qui replace sample=1 if campus==101915002& rated_year ==2000; qui replace sample=1 if campus==129905001& rated_year ==1998; qui replace sample=1 if campus==116903001& rated_year ==2003; qui replace sample=1 if campus==181901001& rated_year ==2008; qui replace sample=1 if campus==113903002& rated_year ==1997; qui replace sample=1 if campus==101915001& rated_year ==1998; qui replace sample=1 if campus==32902002& rated_year ==2001; qui replace sample=1 if campus==100908001& rated_year ==1999; qui replace sample=1 if campus==43911001& rated_year ==2002; qui replace sample=1 if campus==102904002& rated_year ==1997; qui replace sample=1 if campus==57913001& rated_year ==2000; qui replace sample=1 if campus==84909001& rated_year ==2005; qui replace sample=1 if campus==15917001& rated_year ==1996; qui replace sample=1 if campus==242902001& rated_year ==2003; qui replace sample=1 if campus==167901001& rated_year ==2006; qui replace sample=1 if campus==246902001& rated_year ==2000; qui replace sample=1 if campus==57905039& rated_year ==2002; qui replace sample=1 if campus==101906001& rated_year ==1999; qui replace sample=1 if campus==101920006& rated_year ==2000; qui replace sample=1 if campus==46902001& rated_year ==2002; qui replace sample=1 if campus==153903001& rated_year ==2002; qui replace sample=1 if campus==31901002& rated_year ==2001; qui replace sample=1 if campus==31903002& rated_year ==1998; qui replace sample=1 if campus==71905005& rated_year ==2001; qui replace sample=1 if campus==212902001& rated_year ==2006; qui replace sample=1 if campus==101920005& rated_year ==2002; qui replace sample=1 if campus==188901005& rated_year ==2004; qui replace sample=1 if campus==15907003& rated_year ==2005; qui replace sample=1 if campus==49905001& rated_year ==2000; qui replace sample=1 if campus==62903001& rated_year ==2002; qui replace sample=1 if campus==71902008& rated_year ==1998; qui replace sample=1 if campus==101920005& rated_year ==2007; qui replace sample=1 if campus==92906002& rated_year ==2001; qui replace sample=1 if campus==108912001& rated_year ==1995; qui replace sample=1 if campus==108914001& rated_year ==2000; qui replace sample=1 if campus==108912001& rated_year ==2003; qui replace sample=1 if campus==212901001& rated_year ==2006; qui replace sample=1 if campus==71902003& rated_year ==1996; qui replace sample=1 if campus==15917001& rated_year ==2007; qui replace sample=1 if campus==15915002& rated_year ==2006; qui replace sample=1 if campus==98904001& rated_year ==1995; qui replace sample=1 if campus==145902001& rated_year ==2003; qui replace sample=1 if campus==101912008& rated_year ==2006; qui replace sample=1 if campus==45903001& rated_year ==1998; qui replace sample=1 if campus==2901001& rated_year ==1996; qui replace sample=1 if campus==220905008& rated_year ==2008; qui replace sample=1 if campus==227901009& rated_year ==2007; qui replace sample=1 if campus==43910004& rated_year ==1994; qui replace sample=1 if campus==142901001& rated_year ==2003; qui replace sample=1 if campus==158905001& rated_year ==1998; qui replace sample=1 if campus==123910003& rated_year ==1995; qui replace sample=1 if campus==126903001& rated_year ==2001; qui replace sample=1 if campus==3905001& rated_year ==2008; qui replace sample=1 if campus==71905002& rated_year ==2007; qui replace sample=1 if campus==101902003& rated_year ==1995; qui replace sample=1 if campus==152902001& rated_year ==2005; qui replace sample=1 if campus==178914001& rated_year ==2007; qui replace sample=1 if campus==14903001& rated_year ==2001; qui replace sample=1 if campus==182903001& rated_year ==1998; qui replace sample=1 if campus==240901003& rated_year ==1999; qui replace sample=1 if campus==174903001& rated_year ==1994; qui replace sample=1 if campus==220905014& rated_year ==1998; qui replace sample=1 if campus==101912014& rated_year ==1999; qui replace sample=1 if campus==12901001& rated_year ==1996; qui replace sample=1 if campus==43910004& rated_year ==2002; qui replace sample=1 if campus==101907002& rated_year ==2008; qui replace sample=1 if campus==72903001& rated_year ==2001; qui replace sample=1 if campus==14906002& rated_year ==1995; qui replace sample=1 if campus==101912019& rated_year ==1995; qui replace sample=1 if campus==232903001& rated_year ==1994; qui replace sample=1 if campus==8901001& rated_year ==1999; qui replace sample=1 if campus==101919002& rated_year ==2006; qui replace sample=1 if campus==38901001& rated_year ==2008; qui replace sample=1 if campus==15908001& rated_year ==2006; qui replace sample=1 if campus==15907001& rated_year ==1994; qui replace sample=1 if campus==53001001& rated_year ==2003; qui replace sample=1 if campus==102903002& rated_year ==2000; qui replace sample=1 if campus==227901002& rated_year ==1998; qui replace sample=1 if campus==121903001& rated_year ==2001; qui replace sample=1 if campus==108914001& rated_year ==1999; qui replace sample=1 if campus==194904002& rated_year ==2008; qui replace sample=1 if campus==101903001& rated_year ==2004; qui replace sample=1 if campus==167901001& rated_year ==2002; qui replace sample=1 if campus==207901001& rated_year ==2003; qui replace sample=1 if campus==84911001& rated_year ==2000; qui replace sample=1 if campus==15910002& rated_year ==2005; qui replace sample=1 if campus==15910001& rated_year ==2008; qui replace sample=1 if campus==84902001& rated_year ==1995; qui replace sample=1 if campus==152903001& rated_year ==1999; qui replace sample=1 if campus==174908001& rated_year ==2006; qui replace sample=1 if campus==101910002& rated_year ==1999; qui replace sample=1 if campus==116906001& rated_year ==2004; qui replace sample=1 if campus==201902001& rated_year ==1998; qui replace sample=1 if campus==112901002& rated_year ==2001; qui replace sample=1 if campus==145901002& rated_year ==2001; qui replace sample=1 if campus==43910005& rated_year ==2000; qui replace sample=1 if campus==119902001& rated_year ==2001; qui replace sample=1 if campus==102905001& rated_year ==1994; qui replace sample=1 if campus==107904001& rated_year ==2006; qui replace sample=1 if campus==101924001& rated_year ==1997; qui replace sample=1 if campus==14903001& rated_year ==2006; qui replace sample=1 if campus==7901001& rated_year ==2001; qui replace sample=1 if campus==57910002& rated_year ==1994; qui replace sample=1 if campus==57905026& rated_year ==2004; qui replace sample=1 if campus==57905032& rated_year ==1994; qui replace sample=1 if campus==5902001& rated_year ==2005; qui replace sample=1 if campus==79901001& rated_year ==1996; qui replace sample=1 if campus==101902003& rated_year ==2003; qui replace sample=1 if campus==221901001& rated_year ==2006; qui replace sample=1 if campus==15907001& rated_year ==2007; qui replace sample=1 if campus==89901001& rated_year ==1997; qui replace sample=1 if campus==47902001& rated_year ==2000; qui replace sample=1 if campus==205904001& rated_year ==2007; qui replace sample=1 if campus==42901001& rated_year ==1995; qui replace sample=1 if campus==191901002& rated_year ==2005; qui replace sample=1 if campus==247906001& rated_year ==2001; qui replace sample=1 if campus==146906001& rated_year ==2003; qui replace sample=1 if campus==210902001& rated_year ==2003; qui replace sample=1 if campus==91908001& rated_year ==2000; qui replace sample=1 if campus==70912002& rated_year ==2007; qui replace sample=1 if campus==220905004& rated_year ==1999; qui replace sample=1 if campus==20908001& rated_year ==2003; qui replace sample=1 if campus==239903001& rated_year ==2003; qui replace sample=1 if campus==34903001& rated_year ==2007; qui replace sample=1 if campus==227901002& rated_year ==1997; qui replace sample=1 if campus==43911001& rated_year ==1995; qui replace sample=1 if campus==227901003& rated_year ==1995; qui replace sample=1 if campus==14906002& rated_year ==1996; qui replace sample=1 if campus==102905001& rated_year ==1996; qui replace sample=1 if campus==227901003& rated_year ==2000; qui replace sample=1 if campus==161901001& rated_year ==2007; qui replace sample=1 if campus==98901001& rated_year ==2004; qui replace sample=1 if campus==125903001& rated_year ==2008; qui replace sample=1 if campus==227901004& rated_year ==1995; qui replace sample=1 if campus==243902001& rated_year ==2006; qui replace sample=1 if campus==227901004& rated_year ==1998; qui replace sample=1 if campus==101912015& rated_year ==1997; qui replace sample=1 if campus==57914002& rated_year ==1998; qui replace sample=1 if campus==57905014& rated_year ==2004; qui replace sample=1 if campus==43905001& rated_year ==1995; qui replace sample=1 if campus==161908002& rated_year ==2004; qui replace sample=1 if campus==101907005& rated_year ==1994; qui replace sample=1 if campus==116915001& rated_year ==1996; qui replace sample=1 if campus==227901004& rated_year ==2003; qui replace sample=1 if campus==57905018& rated_year ==1999; qui replace sample=1 if campus==227901005& rated_year ==1999; qui replace sample=1 if campus==71905002& rated_year ==1995; qui replace sample=1 if campus==77902001& rated_year ==1997; qui replace sample=1 if campus==227901005& rated_year ==2006; qui replace sample=1 if campus==227901005& rated_year ==2007; qui replace sample=1 if campus==61911001& rated_year ==2003; qui replace sample=1 if campus==201914001& rated_year ==1998; qui replace sample=1 if campus==70908001& rated_year ==1994; qui replace sample=1 if campus==227901006& rated_year ==2000; qui replace sample=1 if campus==34905002& rated_year ==2008; qui replace sample=1 if campus==19905001& rated_year ==1996; qui replace sample=1 if campus==101905001& rated_year ==1996; qui replace sample=1 if campus==108909001& rated_year ==1998; qui replace sample=1 if campus==227901007& rated_year ==2002; qui replace sample=1 if campus==227901010& rated_year ==2001; qui replace sample=1 if campus==71903001& rated_year ==2007; qui replace sample=1 if campus==195901001& rated_year ==1996; qui replace sample=1 if campus==161901001& rated_year ==1999; qui replace sample=1 if campus==227901008& rated_year ==2005; qui replace sample=1 if campus==227901008& rated_year ==2006; qui replace sample=1 if campus==230906001& rated_year ==1996; qui replace sample=1 if campus==227901009& rated_year ==1995; qui replace sample=1 if campus==97902001& rated_year ==1999; qui replace sample=1 if campus==227901009& rated_year ==2008; qui replace sample=1 if campus==70910001& rated_year ==1998; qui replace sample=1 if campus==204901001& rated_year ==2005; qui replace sample=1 if campus==71909002& rated_year ==2002; qui replace sample=1 if campus==116901001& rated_year ==2002; qui replace sample=1 if campus==161907001& rated_year ==2004; qui replace sample=1 if campus==220905009& rated_year ==2002; qui replace sample=1 if campus==101910003& rated_year ==2004; qui replace sample=1 if campus==241906001& rated_year ==1995; qui replace sample=1 if campus==161922001& rated_year ==2000; qui replace sample=1 if campus==170906001& rated_year ==2003; qui replace sample=1 if campus==201910002& rated_year ==2004; qui replace sample=1 if campus==108909001& rated_year ==2005; qui replace sample=1 if campus==71902004& rated_year ==2007; qui replace sample=1 if campus==212904002& rated_year ==1994; qui replace sample=1 if campus==101903001& rated_year ==2005; qui replace sample=1 if campus==31901003& rated_year ==2000; qui replace sample=1 if campus==227901013& rated_year ==2000; qui replace sample=1 if campus==113906001& rated_year ==2004; qui replace sample=1 if campus==43910005& rated_year ==1998; qui replace sample=1 if campus==126911001& rated_year ==2002; qui replace sample=1 if campus==43901001& rated_year ==1997; qui replace sample=1 if campus==245903001& rated_year ==2007; qui replace sample=1 if campus==161922001& rated_year ==2008; qui replace sample=1 if campus==70905002& rated_year ==1995; qui replace sample=1 if campus==16902001& rated_year ==1994; qui replace sample=1 if campus==20905002& rated_year ==2006; qui replace sample=1 if campus==107910001& rated_year ==2002; qui replace sample=1 if campus==19908001& rated_year ==1997; qui replace sample=1 if campus==245903001& rated_year ==2006; qui replace sample=1 if campus==69902001& rated_year ==1998; qui replace sample=1 if campus==123910001& rated_year ==2000; qui replace sample=1 if campus==71905001& rated_year ==2006; qui replace sample=1 if campus==30903001& rated_year ==2003; qui replace sample=1 if campus==43902001& rated_year ==1995; qui replace sample=1 if campus==57914002& rated_year ==1997; qui replace sample=1 if campus==220905016& rated_year ==2003; qui replace sample=1 if campus==100904001& rated_year ==1994; qui replace sample=1 if campus==181908001& rated_year ==2000; qui replace sample=1 if campus==249905001& rated_year ==1999; qui replace sample=1 if campus==245903001& rated_year ==2005; qui replace sample=1 if campus==108909003& rated_year ==1995; qui replace sample=1 if campus==120905001& rated_year ==1999; qui replace sample=1 if campus==15904002& rated_year ==2003; qui replace sample=1 if campus==245903001& rated_year ==2003; qui replace sample=1 if campus==152908001& rated_year ==2005; qui replace sample=1 if campus==227901006& rated_year ==1995; qui replace sample=1 if campus==184904001& rated_year ==1995; qui replace sample=1 if campus==158901001& rated_year ==1996; qui replace sample=1 if campus==97902001& rated_year ==1994; qui replace sample=1 if campus==170907001& rated_year ==2003; qui replace sample=1 if campus==220905002& rated_year ==1996; qui replace sample=1 if campus==24901001& rated_year ==2000; qui replace sample=1 if campus==37907002& rated_year ==2004; qui replace sample=1 if campus==161922001& rated_year ==1998; qui replace sample=1 if campus==63903001& rated_year ==1995; qui replace sample=1 if campus==31913001& rated_year ==2006; qui replace sample=1 if campus==227901009& rated_year ==1997; qui replace sample=1 if campus==227913001& rated_year ==2003; qui replace sample=1 if campus==240903002& rated_year ==2008; qui replace sample=1 if campus==245903001& rated_year ==1998; qui replace sample=1 if campus==57905038& rated_year ==2004; qui replace sample=1 if campus==15915003& rated_year ==1994; qui replace sample=1 if campus==190903001& rated_year ==1997; qui replace sample=1 if campus==43904001& rated_year ==2004; qui replace sample=1 if campus==43914001& rated_year ==2001; qui replace sample=1 if campus==61902002& rated_year ==1999; qui replace sample=1 if campus==243903001& rated_year ==2002; qui replace sample=1 if campus==250903001& rated_year ==1995; qui replace sample=1 if campus==14908001& rated_year ==2007; qui replace sample=1 if campus==37907002& rated_year ==2006; qui replace sample=1 if campus==108911001& rated_year ==2001; qui replace sample=1 if campus==15905003& rated_year ==2001; qui replace sample=1 if campus==108914001& rated_year ==2008; qui replace sample=1 if campus==102906001& rated_year ==2007; qui replace sample=1 if campus==75901001& rated_year ==1996; qui replace sample=1 if campus==246913001& rated_year ==2006; qui replace sample=1 if campus==245903001& rated_year ==1997; qui replace sample=1 if campus==235902002& rated_year ==1994; qui replace sample=1 if campus==100903002& rated_year ==2008; qui replace sample=1 if campus==229904001& rated_year ==2008; qui replace sample=1 if campus==201903001& rated_year ==2007; qui replace sample=1 if campus==70912002& rated_year ==2008; qui replace sample=1 if campus==188901005& rated_year ==2007; qui replace sample=1 if campus==15915004& rated_year ==2001; qui replace sample=1 if campus==212910001& rated_year ==2006; qui replace sample=1 if campus==227904001& rated_year ==1994; qui replace sample=1 if campus==57905009& rated_year ==2005; qui replace sample=1 if campus==57905026& rated_year ==2008; qui replace sample=1 if campus==227904001& rated_year ==2000; qui replace sample=1 if campus==227904001& rated_year ==2005; qui replace sample=1 if campus==245903001& rated_year ==1994; qui replace sample=1 if campus==74917001& rated_year ==2002; qui replace sample=1 if campus==129901001& rated_year ==1994; qui replace sample=1 if campus==250903001& rated_year ==1999; qui replace sample=1 if campus==102902001& rated_year ==2004; qui replace sample=1 if campus==84906001& rated_year ==1997; qui replace sample=1 if campus==152902001& rated_year ==1997; qui replace sample=1 if campus==227904001& rated_year ==1995; qui replace sample=1 if campus==58906001& rated_year ==1994; qui replace sample=1 if campus==43910004& rated_year ==1999; qui replace sample=1 if campus==24901001& rated_year ==2007; qui replace sample=1 if campus==1907001& rated_year ==1994; qui replace sample=1 if campus==15907182& rated_year ==2006; qui replace sample=1 if campus==43910003& rated_year ==1997; qui replace sample=1 if campus==73905001& rated_year ==1996; qui replace sample=1 if campus==146907001& rated_year ==2007; qui replace sample=1 if campus==121904001& rated_year ==2001; qui replace sample=1 if campus==108914001& rated_year ==1998; qui replace sample=1 if campus==139911002& rated_year ==1994; qui replace sample=1 if campus==252901001& rated_year ==2008; qui replace sample=1 if campus==227907001& rated_year ==1994; qui replace sample=1 if campus==123907001& rated_year ==2000; qui replace sample=1 if campus==57905036& rated_year ==2004; qui replace sample=1 if campus==227907001& rated_year ==1998; qui replace sample=1 if campus==117901001& rated_year ==1997; qui replace sample=1 if campus==227907001& rated_year ==2007; qui replace sample=1 if campus==125903001& rated_year ==1996; qui replace sample=1 if campus==100907001& rated_year ==1994; qui replace sample=1 if campus==179901001& rated_year ==2006; qui replace sample=1 if campus==19906001& rated_year ==2002; qui replace sample=1 if campus==91917001& rated_year ==2000; qui replace sample=1 if campus==101907002& rated_year ==1999; qui replace sample=1 if campus==57903002& rated_year ==1997; qui replace sample=1 if campus==113905001& rated_year ==2000; qui replace sample=1 if campus==3904001& rated_year ==2002; qui replace sample=1 if campus==1909001& rated_year ==2007; qui replace sample=1 if campus==79910001& rated_year ==2008; qui replace sample=1 if campus==15906001& rated_year ==1997; qui replace sample=1 if campus==34901001& rated_year ==2007; qui replace sample=1 if campus==65901001& rated_year ==2001; qui replace sample=1 if campus==189902001& rated_year ==1998; qui replace sample=1 if campus==129901001& rated_year ==2003; qui replace sample=1 if campus==238902001& rated_year ==2004; qui replace sample=1 if campus==227910001& rated_year ==1999; qui replace sample=1 if campus==57905021& rated_year ==1998; qui replace sample=1 if campus==189901001& rated_year ==1994; qui replace sample=1 if campus==71905001& rated_year ==2008; qui replace sample=1 if campus==200901001& rated_year ==2007; qui replace sample=1 if campus==57905002& rated_year ==2007; qui replace sample=1 if campus==61908001& rated_year ==1996; qui replace sample=1 if campus==158906002& rated_year ==1999; qui replace sample=1 if campus==113902002& rated_year ==1999; qui replace sample=1 if campus==152906001& rated_year ==2005; qui replace sample=1 if campus==43918001& rated_year ==2000; qui replace sample=1 if campus==34903001& rated_year ==2000; qui replace sample=1 if campus==57903001& rated_year ==2001; qui replace sample=1 if campus==245902001& rated_year ==1999; qui replace sample=1 if campus==249905001& rated_year ==2006; qui replace sample=1 if campus==161923001& rated_year ==2003; qui replace sample=1 if campus==144902001& rated_year ==2006; qui replace sample=1 if campus==220905008& rated_year ==2004; qui replace sample=1 if campus==18902001& rated_year ==2004; qui replace sample=1 if campus==144902001& rated_year ==2007; qui replace sample=1 if campus==198903001& rated_year ==2005; qui replace sample=1 if campus==16901001& rated_year ==1998; qui replace sample=1 if campus==189901001& rated_year ==2004; qui replace sample=1 if campus==1908002& rated_year ==2007; qui replace sample=1 if campus==227913001& rated_year ==2004; qui replace sample=1 if campus==245902001& rated_year ==1996; qui replace sample=1 if campus==194903001& rated_year ==2002; qui replace sample=1 if campus==108904003& rated_year ==2006; qui replace sample=1 if campus==228901001& rated_year ==1998; qui replace sample=1 if campus==101919002& rated_year ==2005; qui replace sample=1 if campus==212910001& rated_year ==2000; qui replace sample=1 if campus==246909004& rated_year ==2004; qui replace sample=1 if campus==178908001& rated_year ==1999; qui replace sample=1 if campus==245902001& rated_year ==1994; qui replace sample=1 if campus==228903001& rated_year ==1995; qui replace sample=1 if campus==201914001& rated_year ==2004; qui replace sample=1 if campus==230903001& rated_year ==2008; qui replace sample=1 if campus==101912016& rated_year ==2005; qui replace sample=1 if campus==214901001& rated_year ==2007; qui replace sample=1 if campus==212909001& rated_year ==1998; qui replace sample=1 if campus==15907003& rated_year ==2002; qui replace sample=1 if campus==220910001& rated_year ==1997; qui replace sample=1 if campus==101905001& rated_year ==2001; qui replace sample=1 if campus==31909001& rated_year ==1999; qui replace sample=1 if campus==42901001& rated_year ==2001; qui replace sample=1 if campus==139912001& rated_year ==1996; qui replace sample=1 if campus==14906002& rated_year ==2005; qui replace sample=1 if campus==102904002& rated_year ==1995; qui replace sample=1 if campus==210903002& rated_year ==1997; qui replace sample=1 if campus==81905002& rated_year ==2003; qui replace sample=1 if campus==201913001& rated_year ==2000; qui replace sample=1 if campus==36903001& rated_year ==1999; qui replace sample=1 if campus==234903001& rated_year ==2008; qui replace sample=1 if campus==31901001& rated_year ==2001; qui replace sample=1 if campus==57905034& rated_year ==2001; qui replace sample=1 if campus==14901001& rated_year ==2006; qui replace sample=1 if campus==79907004& rated_year ==1996; qui replace sample=1 if campus==250903001& rated_year ==2004; qui replace sample=1 if campus==230906001& rated_year ==1995; qui replace sample=1 if campus==108914001& rated_year ==1994; qui replace sample=1 if campus==175903001& rated_year ==1998; qui replace sample=1 if campus==69902001& rated_year ==2002; qui replace sample=1 if campus==229903001& rated_year ==1996; qui replace sample=1 if campus==229903001& rated_year ==1998; qui replace sample=1 if campus==26903002& rated_year ==2005; qui replace sample=1 if campus==101912006& rated_year ==1996; qui replace sample=1 if campus==77902001& rated_year ==1999; qui replace sample=1 if campus==229903001& rated_year ==2005; qui replace sample=1 if campus==229903001& rated_year ==2007; qui replace sample=1 if campus==229903001& rated_year ==2008; qui replace sample=1 if campus==229904001& rated_year ==1995; qui replace sample=1 if campus==229904001& rated_year ==2002; qui replace sample=1 if campus==57905025& rated_year ==1994; qui replace sample=1 if campus==91905001& rated_year ==1994; qui replace sample=1 if campus==93901001& rated_year ==1999; qui replace sample=1 if campus==237904002& rated_year ==2004; qui replace sample=1 if campus==229905001& rated_year ==1995; qui replace sample=1 if campus==84906001& rated_year ==2004; qui replace sample=1 if campus==229905001& rated_year ==1997; qui replace sample=1 if campus==229905001& rated_year ==1998; qui replace sample=1 if campus==7905001& rated_year ==2004; qui replace sample=1 if campus==25901001& rated_year ==2006; qui replace sample=1 if campus==158902001& rated_year ==2005; qui replace sample=1 if campus==101920005& rated_year ==1997; qui replace sample=1 if campus==15908001& rated_year ==2007; qui replace sample=1 if campus==31911001& rated_year ==1994; qui replace sample=1 if campus==61901003& rated_year ==1999; qui replace sample=1 if campus==161909001& rated_year ==1996; qui replace sample=1 if campus==181905001& rated_year ==1999; qui replace sample=1 if campus==121904001& rated_year ==1995; qui replace sample=1 if campus==170903002& rated_year ==2001; qui replace sample=1 if campus==108913004& rated_year ==1999; qui replace sample=1 if campus==220917001& rated_year ==1994; qui replace sample=1 if campus==214903001& rated_year ==2003; qui replace sample=1 if campus==188901001& rated_year ==2006; qui replace sample=1 if campus==230903001& rated_year ==1997; qui replace sample=1 if campus==230903001& rated_year ==1998; qui replace sample=1 if campus==230903001& rated_year ==1999; qui replace sample=1 if campus==241904001& rated_year ==1996; qui replace sample=1 if campus==204904001& rated_year ==1996; qui replace sample=1 if campus==72903001& rated_year ==2008; qui replace sample=1 if campus==230903001& rated_year ==2007; qui replace sample=1 if campus==161920001& rated_year ==1997; qui replace sample=1 if campus==181908001& rated_year ==1996; qui replace sample=1 if campus==212901001& rated_year ==2004; qui replace sample=1 if campus==166904001& rated_year ==2000; qui replace sample=1 if campus==246911001& rated_year ==2004; qui replace sample=1 if campus==166901002& rated_year ==1999; qui replace sample=1 if campus==153903001& rated_year ==2007; qui replace sample=1 if campus==187904001& rated_year ==1998; qui replace sample=1 if campus==15912001& rated_year ==1995; qui replace sample=1 if campus==70905002& rated_year ==2006; qui replace sample=1 if campus==21902001& rated_year ==1999; qui replace sample=1 if campus==230906001& rated_year ==1997; qui replace sample=1 if campus==230906001& rated_year ==1998; qui replace sample=1 if campus==230906001& rated_year ==1999; qui replace sample=1 if campus==170907001& rated_year ==1995; qui replace sample=1 if campus==201903001& rated_year ==2002; qui replace sample=1 if campus==230906001& rated_year ==2003; qui replace sample=1 if campus==206901001& rated_year ==1996; qui replace sample=1 if campus==72903001& rated_year ==2006; qui replace sample=1 if campus==29901001& rated_year ==2007; qui replace sample=1 if campus==21901001& rated_year ==2005; qui replace sample=1 if campus==230906001& rated_year ==2008; qui replace sample=1 if campus==82902001& rated_year ==2007; qui replace sample=1 if campus==230908001& rated_year ==1997; qui replace sample=1 if campus==30901001& rated_year ==2008; qui replace sample=1 if campus==230908001& rated_year ==2001; qui replace sample=1 if campus==126908001& rated_year ==2008; qui replace sample=1 if campus==227901005& rated_year ==1995; qui replace sample=1 if campus==15905002& rated_year ==2007; qui replace sample=1 if campus==114901001& rated_year ==2002; qui replace sample=1 if campus==126908001& rated_year ==2007; qui replace sample=1 if campus==129905001& rated_year ==2006; qui replace sample=1 if campus==231901001& rated_year ==2004; qui replace sample=1 if campus==29901001& rated_year ==2001; qui replace sample=1 if campus==82902001& rated_year ==2001; qui replace sample=1 if campus==72902001& rated_year ==1994; qui replace sample=1 if campus==178903001& rated_year ==2002; qui replace sample=1 if campus==161903001& rated_year ==2007; qui replace sample=1 if campus==124901001& rated_year ==2003; qui replace sample=1 if campus==49905001& rated_year ==1996; qui replace sample=1 if campus==57904001& rated_year ==1996; qui replace sample=1 if campus==229905001& rated_year ==1999; qui replace sample=1 if campus==62904001& rated_year ==2002; qui replace sample=1 if campus==108906002& rated_year ==2007; qui replace sample=1 if campus==32902002& rated_year ==2007; qui replace sample=1 if campus==240901001& rated_year ==2004; qui replace sample=1 if campus==15915003& rated_year ==1996; qui replace sample=1 if campus==79910001& rated_year ==1997; qui replace sample=1 if campus==32902002& rated_year ==1999; qui replace sample=1 if campus==157901001& rated_year ==2006; qui replace sample=1 if campus==130902001& rated_year ==2003; qui replace sample=1 if campus==71907001& rated_year ==2008; qui replace sample=1 if campus==113902002& rated_year ==2007; qui replace sample=1 if campus==57910003& rated_year ==2001; qui replace sample=1 if campus==70905002& rated_year ==1996; qui replace sample=1 if campus==211902001& rated_year ==2000; qui replace sample=1 if campus==83901001& rated_year ==1994; qui replace sample=1 if campus==232903001& rated_year ==2000; qui replace sample=1 if campus==31911001& rated_year ==2007; qui replace sample=1 if campus==95903001& rated_year ==1994; qui replace sample=1 if campus==14908001& rated_year ==2003; qui replace sample=1 if campus==101902001& rated_year ==2003; qui replace sample=1 if campus==170902003& rated_year ==2007; qui replace sample=1 if campus==232903002& rated_year ==1995; qui replace sample=1 if campus==247903001& rated_year ==1996; qui replace sample=1 if campus==57909002& rated_year ==2004; qui replace sample=1 if campus==175907001& rated_year ==2003; qui replace sample=1 if campus==232903002& rated_year ==1999; qui replace sample=1 if campus==228901001& rated_year ==2006; qui replace sample=1 if campus==20902001& rated_year ==2008; qui replace sample=1 if campus==102901002& rated_year ==1996; qui replace sample=1 if campus==101920006& rated_year ==2003; qui replace sample=1 if campus==201903001& rated_year ==1994; qui replace sample=1 if campus==101912014& rated_year ==1997; qui replace sample=1 if campus==100904001& rated_year ==2000; qui replace sample=1 if campus==18907001& rated_year ==2006; qui replace sample=1 if campus==220905008& rated_year ==1999; qui replace sample=1 if campus==220907001& rated_year ==2005; qui replace sample=1 if campus==130902001& rated_year ==2000; qui replace sample=1 if campus==239903001& rated_year ==1999; qui replace sample=1 if campus==161921001& rated_year ==2001; qui replace sample=1 if campus==91914001& rated_year ==2006; qui replace sample=1 if campus==165902001& rated_year ==2006; qui replace sample=1 if campus==233901001& rated_year ==1994; qui replace sample=1 if campus==247906001& rated_year ==2002; qui replace sample=1 if campus==233901001& rated_year ==1997; qui replace sample=1 if campus==251902001& rated_year ==1994; qui replace sample=1 if campus==51901001& rated_year ==2004; qui replace sample=1 if campus==15906001& rated_year ==2007; qui replace sample=1 if campus==233901001& rated_year ==2004; qui replace sample=1 if campus==26903002& rated_year ==1997; qui replace sample=1 if campus==233901001& rated_year ==2007; qui replace sample=1 if campus==101915002& rated_year ==2008; qui replace sample=1 if campus==180902001& rated_year ==2008; qui replace sample=1 if campus==227901009& rated_year ==2003; qui replace sample=1 if campus==80901001& rated_year ==2007; qui replace sample=1 if campus==233901002& rated_year ==1998; qui replace sample=1 if campus==233901002& rated_year ==1999; qui replace sample=1 if campus==43911001& rated_year ==2007; qui replace sample=1 if campus==49901001& rated_year ==1999; qui replace sample=1 if campus==178915001& rated_year ==1998; qui replace sample=1 if campus==205906001& rated_year ==2000; qui replace sample=1 if campus==221901002& rated_year ==2000; qui replace sample=1 if campus==105904001& rated_year ==2004; qui replace sample=1 if campus==71905002& rated_year ==2003; qui replace sample=1 if campus==33904001& rated_year ==2006; qui replace sample=1 if campus==227907001& rated_year ==2003; qui replace sample=1 if campus==165901042& rated_year ==2002; qui replace sample=1 if campus==230908001& rated_year ==2008; qui replace sample=1 if campus==186902001& rated_year ==2008; qui replace sample=1 if campus==106901001& rated_year ==2001; qui replace sample=1 if campus==72902001& rated_year ==2006; qui replace sample=1 if campus==7906001& rated_year ==2006; qui replace sample=1 if campus==153903001& rated_year ==2008; qui replace sample=1 if campus==71902001& rated_year ==2007; qui replace sample=1 if campus==189902001& rated_year ==2000; qui replace sample=1 if campus==250905001& rated_year ==2003; qui replace sample=1 if campus==234902001& rated_year ==1998; qui replace sample=1 if campus==226905001& rated_year ==2002; qui replace sample=1 if campus==49901001& rated_year ==2000; qui replace sample=1 if campus==234902001& rated_year ==2006; qui replace sample=1 if campus==111901001& rated_year ==2005; qui replace sample=1 if campus==39902001& rated_year ==2004; qui replace sample=1 if campus==251901001& rated_year ==2005; qui replace sample=1 if campus==101912007& rated_year ==2008; qui replace sample=1 if campus==107902001& rated_year ==2008; qui replace sample=1 if campus==117904001& rated_year ==2007; qui replace sample=1 if campus==49901001& rated_year ==1996; qui replace sample=1 if campus==220905004& rated_year ==2006; qui replace sample=1 if campus==11901001& rated_year ==2001; qui replace sample=1 if campus==34903001& rated_year ==1999; qui replace sample=1 if campus==10901001& rated_year ==1997; qui replace sample=1 if campus==19907002& rated_year ==1997; qui replace sample=1 if campus==234904001& rated_year ==2002; qui replace sample=1 if campus==220918001& rated_year ==2004; qui replace sample=1 if campus==33904001& rated_year ==1996; qui replace sample=1 if campus==234904001& rated_year ==2007; qui replace sample=1 if campus==101907004& rated_year ==1999; qui replace sample=1 if campus==126907001& rated_year ==1995; qui replace sample=1 if campus==40902001& rated_year ==1995; qui replace sample=1 if campus==113906001& rated_year ==2006; qui replace sample=1 if campus==209901001& rated_year ==1995; qui replace sample=1 if campus==20901001& rated_year ==1994; qui replace sample=1 if campus==31901001& rated_year ==2008; qui replace sample=1 if campus==108913001& rated_year ==2001; qui replace sample=1 if campus==108908001& rated_year ==2001; qui replace sample=1 if campus==155901002& rated_year ==2000; qui replace sample=1 if campus==141901001& rated_year ==2003; qui replace sample=1 if campus==161922001& rated_year ==2005; qui replace sample=1 if campus==101912025& rated_year ==1998; qui replace sample=1 if campus==46901001& rated_year ==2008; qui replace sample=1 if campus==45905002& rated_year ==1995; qui replace sample=1 if campus==205906001& rated_year ==1996; qui replace sample=1 if campus==79907001& rated_year ==2004; qui replace sample=1 if campus==205905001& rated_year ==2004; qui replace sample=1 if campus==112901002& rated_year ==1999; qui replace sample=1 if campus==250903001& rated_year ==2008; qui replace sample=1 if campus==14901001& rated_year ==1996; qui replace sample=1 if campus==61905001& rated_year ==2000; qui replace sample=1 if campus==57905017& rated_year ==2003; qui replace sample=1 if campus==108906001& rated_year ==1997; qui replace sample=1 if campus==109905001& rated_year ==2004; qui replace sample=1 if campus==161919001& rated_year ==1997; qui replace sample=1 if campus==101907007& rated_year ==2002; qui replace sample=1 if campus==14909002& rated_year ==2005; qui replace sample=1 if campus==234904001& rated_year ==1997; qui replace sample=1 if campus==79907006& rated_year ==2004; qui replace sample=1 if campus==71901002& rated_year ==1995; qui replace sample=1 if campus==185901001& rated_year ==1999; qui replace sample=1 if campus==227907001& rated_year ==2000; qui replace sample=1 if campus==1903001& rated_year ==1994; qui replace sample=1 if campus==39903001& rated_year ==2008; qui replace sample=1 if campus==235901001& rated_year ==1994; qui replace sample=1 if campus==156902001& rated_year ==2007; qui replace sample=1 if campus==235901001& rated_year ==1996; qui replace sample=1 if campus==57905021& rated_year ==1999; qui replace sample=1 if campus==178913001& rated_year ==1995; qui replace sample=1 if campus==205903001& rated_year ==1997; qui replace sample=1 if campus==55901001& rated_year ==2003; qui replace sample=1 if campus==235901001& rated_year ==2007; qui replace sample=1 if campus==228903001& rated_year ==2007; qui replace sample=1 if campus==251901001& rated_year ==2002; qui replace sample=1 if campus==187901001& rated_year ==1994; qui replace sample=1 if campus==235902001& rated_year ==1996; qui replace sample=1 if campus==180902001& rated_year ==1994; qui replace sample=1 if campus==235902001& rated_year ==1998; qui replace sample=1 if campus==91914001& rated_year ==1999; qui replace sample=1 if campus==188901001& rated_year ==2005; qui replace sample=1 if campus==254901001& rated_year ==2006; qui replace sample=1 if campus==253901001& rated_year ==2001; qui replace sample=1 if campus==230906001& rated_year ==1994; qui replace sample=1 if campus==108906006& rated_year ==2002; qui replace sample=1 if campus==7905001& rated_year ==1994; qui replace sample=1 if campus==26903002& rated_year ==2002; qui replace sample=1 if campus==117903001& rated_year ==1994; qui replace sample=1 if campus==56901001& rated_year ==1994; qui replace sample=1 if campus==185901001& rated_year ==1995; qui replace sample=1 if campus==155901002& rated_year ==2008; qui replace sample=1 if campus==105902001& rated_year ==2006; qui replace sample=1 if campus==177902001& rated_year ==1998; qui replace sample=1 if campus==155901002& rated_year ==2006; qui replace sample=1 if campus==7901001& rated_year ==1999; qui replace sample=1 if campus==244903001& rated_year ==2008; qui replace sample=1 if campus==220905002& rated_year ==1994; qui replace sample=1 if campus==107902001& rated_year ==1997; qui replace sample=1 if campus==178904003& rated_year ==1995; qui replace sample=1 if campus==84904001& rated_year ==1999; qui replace sample=1 if campus==61902001& rated_year ==2000; qui replace sample=1 if campus==19901001& rated_year ==1995; qui replace sample=1 if campus==101907002& rated_year ==2000; qui replace sample=1 if campus==4901001& rated_year ==1996; qui replace sample=1 if campus==85902001& rated_year ==2001; qui replace sample=1 if campus==108906001& rated_year ==2002; qui replace sample=1 if campus==201908001& rated_year ==2000; qui replace sample=1 if campus==57905014& rated_year ==2007; qui replace sample=1 if campus==71905003& rated_year ==1999; qui replace sample=1 if campus==165901044& rated_year ==2006; qui replace sample=1 if campus==108907001& rated_year ==1998; qui replace sample=1 if campus==228901001& rated_year ==1999; qui replace sample=1 if campus==244903001& rated_year ==2001; qui replace sample=1 if campus==175907001& rated_year ==1994; qui replace sample=1 if campus==109911001& rated_year ==1998; qui replace sample=1 if campus==250907001& rated_year ==1998; qui replace sample=1 if campus==220905008& rated_year ==1998; qui replace sample=1 if campus==39903001& rated_year ==1998; qui replace sample=1 if campus==101911003& rated_year ==2005; qui replace sample=1 if campus==240903002& rated_year ==2004; qui replace sample=1 if campus==44902001& rated_year ==2003; qui replace sample=1 if campus==236901002& rated_year ==2006; qui replace sample=1 if campus==220905008& rated_year ==2002; qui replace sample=1 if campus==184902001& rated_year ==2004; qui replace sample=1 if campus==72903001& rated_year ==1999; qui replace sample=1 if campus==33904001& rated_year ==2003; qui replace sample=1 if campus==236902002& rated_year ==1994; qui replace sample=1 if campus==91917001& rated_year ==2008; qui replace sample=1 if campus==57905001& rated_year ==2007; qui replace sample=1 if campus==1907001& rated_year ==1998; qui replace sample=1 if campus==127904001& rated_year ==1997; qui replace sample=1 if campus==184903001& rated_year ==2003; qui replace sample=1 if campus==227901006& rated_year ==2004; qui replace sample=1 if campus==70912002& rated_year ==2005; qui replace sample=1 if campus==116909001& rated_year ==2003; qui replace sample=1 if campus==220918001& rated_year ==2001; qui replace sample=1 if campus==232902001& rated_year ==2005; qui replace sample=1 if campus==241902001& rated_year ==2001; qui replace sample=1 if campus==100908001& rated_year ==1994; qui replace sample=1 if campus==145911002& rated_year ==2001; qui replace sample=1 if campus==44902001& rated_year ==2004; qui replace sample=1 if campus==254901001& rated_year ==1999; qui replace sample=1 if campus==83901001& rated_year ==2008; qui replace sample=1 if campus==145906001& rated_year ==2001; qui replace sample=1 if campus==70907001& rated_year ==2002; qui replace sample=1 if campus==146905001& rated_year ==2008; qui replace sample=1 if campus==116906001& rated_year ==1999; qui replace sample=1 if campus==237902001& rated_year ==2007; qui replace sample=1 if campus==161907001& rated_year ==2006; qui replace sample=1 if campus==57905024& rated_year ==1998; qui replace sample=1 if campus==220905009& rated_year ==2008; qui replace sample=1 if campus==166904001& rated_year ==1998; qui replace sample=1 if campus==71904001& rated_year ==1997; qui replace sample=1 if campus==210905001& rated_year ==2004; qui replace sample=1 if campus==237904002& rated_year ==2007; qui replace sample=1 if campus==237904002& rated_year ==2008; qui replace sample=1 if campus==101917001& rated_year ==2006; qui replace sample=1 if campus==71905003& rated_year ==1995; qui replace sample=1 if campus==243905001& rated_year ==1999; qui replace sample=1 if campus==43910007& rated_year ==2000; qui replace sample=1 if campus==14905001& rated_year ==2003; qui replace sample=1 if campus==61902001& rated_year ==2006; qui replace sample=1 if campus==141901001& rated_year ==1995; qui replace sample=1 if campus==15915001& rated_year ==1997; qui replace sample=1 if campus==51901001& rated_year ==2008; qui replace sample=1 if campus==182903001& rated_year ==2001; qui replace sample=1 if campus==101917001& rated_year ==2003; qui replace sample=1 if campus==212905003& rated_year ==2004; qui replace sample=1 if campus==100907001& rated_year ==2006; qui replace sample=1 if campus==238902001& rated_year ==1996; qui replace sample=1 if campus==145906001& rated_year ==2000; qui replace sample=1 if campus==238902001& rated_year ==1998; qui replace sample=1 if campus==238902001& rated_year ==1999; qui replace sample=1 if campus==187901001& rated_year ==2005; qui replace sample=1 if campus==150901001& rated_year ==1995; qui replace sample=1 if campus==44902001& rated_year ==2008; qui replace sample=1 if campus==186902001& rated_year ==2007; qui replace sample=1 if campus==1909001& rated_year ==2002; qui replace sample=1 if campus==136901001& rated_year ==2002; qui replace sample=1 if campus==24901001& rated_year ==1999; qui replace sample=1 if campus==9901001& rated_year ==1995; qui replace sample=1 if campus==220907001& rated_year ==1995; qui replace sample=1 if campus==240901003& rated_year ==2000; qui replace sample=1 if campus==187901001& rated_year ==1999; qui replace sample=1 if campus==26902001& rated_year ==2002; qui replace sample=1 if campus==108911001& rated_year ==1994; qui replace sample=1 if campus==237902001& rated_year ==1994; qui replace sample=1 if campus==79901001& rated_year ==1999; qui replace sample=1 if campus==15905002& rated_year ==2008; qui replace sample=1 if campus==71905014& rated_year ==1996; qui replace sample=1 if campus==74903001& rated_year ==2001; qui replace sample=1 if campus==239901001& rated_year ==1995; qui replace sample=1 if campus==43910004& rated_year ==2008; qui replace sample=1 if campus==247906001& rated_year ==2005; qui replace sample=1 if campus==239901001& rated_year ==1999; qui replace sample=1 if campus==68901003& rated_year ==2006; qui replace sample=1 if campus==178903001& rated_year ==2000; qui replace sample=1 if campus==101912004& rated_year ==2003; qui replace sample=1 if campus==220910001& rated_year ==2005; qui replace sample=1 if campus==72902001& rated_year ==2002; qui replace sample=1 if campus==253901001& rated_year ==2003; qui replace sample=1 if campus==15910003& rated_year ==1997; qui replace sample=1 if campus==129910001& rated_year ==1998; qui replace sample=1 if campus==1904001& rated_year ==2004; qui replace sample=1 if campus==220905011& rated_year ==1999; qui replace sample=1 if campus==101915003& rated_year ==2000; qui replace sample=1 if campus==220915001& rated_year ==1994; qui replace sample=1 if campus==232902001& rated_year ==1994; qui replace sample=1 if campus==57912003& rated_year ==1997; qui replace sample=1 if campus==43902001& rated_year ==2005; qui replace sample=1 if campus==146907001& rated_year ==1994; qui replace sample=1 if campus==19908001& rated_year ==2003; qui replace sample=1 if campus==15908002& rated_year ==2007; qui replace sample=1 if campus==29901001& rated_year ==2003; qui replace sample=1 if campus==212905001& rated_year ==1999; qui replace sample=1 if campus==161901001& rated_year ==2008; qui replace sample=1 if campus==91906002& rated_year ==1996; qui replace sample=1 if campus==101914001& rated_year ==2002; qui replace sample=1 if campus==202903001& rated_year ==1998; qui replace sample=1 if campus==240901002& rated_year ==1994; qui replace sample=1 if campus==188903001& rated_year ==2004; qui replace sample=1 if campus==108902001& rated_year ==1996; qui replace sample=1 if campus==133903001& rated_year ==2001; qui replace sample=1 if campus==117904001& rated_year ==1997; qui replace sample=1 if campus==226906001& rated_year ==2007; qui replace sample=1 if campus==61902004& rated_year ==1998; qui replace sample=1 if campus==102902001& rated_year ==1999; qui replace sample=1 if campus==101912015& rated_year ==2001; qui replace sample=1 if campus==201913001& rated_year ==1995; qui replace sample=1 if campus==105902001& rated_year ==1995; qui replace sample=1 if campus==57905034& rated_year ==2005; qui replace sample=1 if campus==170904002& rated_year ==2001; qui replace sample=1 if campus==91902001& rated_year ==1998; qui replace sample=1 if campus==43901001& rated_year ==1999; qui replace sample=1 if campus==66903002& rated_year ==1996; qui replace sample=1 if campus==15916001& rated_year ==2008; qui replace sample=1 if campus==240901002& rated_year ==1995; qui replace sample=1 if campus==19907002& rated_year ==2005; qui replace sample=1 if campus==240901002& rated_year ==1997; qui replace sample=1 if campus==3904001& rated_year ==2003; qui replace sample=1 if campus==7902001& rated_year ==2005; qui replace sample=1 if campus==240901002& rated_year ==2005; qui replace sample=1 if campus==188901002& rated_year ==2004; qui replace sample=1 if campus==161907001& rated_year ==1994; qui replace sample=1 if campus==230908001& rated_year ==2007; qui replace sample=1 if campus==244903001& rated_year ==2007; qui replace sample=1 if campus==13901001& rated_year ==2005; qui replace sample=1 if campus==240901003& rated_year ==2005; qui replace sample=1 if campus==240901003& rated_year ==2007; qui replace sample=1 if campus==152903001& rated_year ==2002; qui replace sample=1 if campus==163903001& rated_year ==2001; qui replace sample=1 if campus==237902001& rated_year ==1999; qui replace sample=1 if campus==101912019& rated_year ==2003; qui replace sample=1 if campus==15906001& rated_year ==1999; qui replace sample=1 if campus==19901001& rated_year ==1996; qui replace sample=1 if campus==19908001& rated_year ==2006; qui replace sample=1 if campus==246902001& rated_year ==1995; qui replace sample=1 if campus==140905002& rated_year ==1999; qui replace sample=1 if campus==240903002& rated_year ==2001; qui replace sample=1 if campus==57905032& rated_year ==2000; qui replace sample=1 if campus==240903001& rated_year ==1996; qui replace sample=1 if campus==240903001& rated_year ==1997; qui replace sample=1 if campus==240903001& rated_year ==1998; qui replace sample=1 if campus==36903001& rated_year ==1997; qui replace sample=1 if campus==79907002& rated_year ==1999; qui replace sample=1 if campus==71901001& rated_year ==2008; qui replace sample=1 if campus==240903001& rated_year ==2006; qui replace sample=1 if campus==240903001& rated_year ==2007; qui replace sample=1 if campus==57912003& rated_year ==1996; qui replace sample=1 if campus==125903001& rated_year ==1999; qui replace sample=1 if campus==240903002& rated_year ==1999; qui replace sample=1 if campus==240903002& rated_year ==2000; qui replace sample=1 if campus==101920005& rated_year ==2003; qui replace sample=1 if campus==220917001& rated_year ==2008; qui replace sample=1 if campus==31903001& rated_year ==1999; qui replace sample=1 if campus==19902002& rated_year ==2001; qui replace sample=1 if campus==221912001& rated_year ==1997; qui replace sample=1 if campus==152909001& rated_year ==1999; qui replace sample=1 if campus==227901010& rated_year ==1994; qui replace sample=1 if campus==112901002& rated_year ==2003; qui replace sample=1 if campus==152902001& rated_year ==2002; qui replace sample=1 if campus==65901001& rated_year ==2000; qui replace sample=1 if campus==30903001& rated_year ==2008; qui replace sample=1 if campus==194904002& rated_year ==2006; qui replace sample=1 if campus==146902002& rated_year ==1995; qui replace sample=1 if campus==31903003& rated_year ==2001; qui replace sample=1 if campus==108906006& rated_year ==1996; qui replace sample=1 if campus==31903001& rated_year ==2007; qui replace sample=1 if campus==31905001& rated_year ==2000; qui replace sample=1 if campus==6902001& rated_year ==1997; qui replace sample=1 if campus==92907001& rated_year ==2005; qui replace sample=1 if campus==227901007& rated_year ==1997; qui replace sample=1 if campus==92908001& rated_year ==2005; qui replace sample=1 if campus==68901003& rated_year ==2001; qui replace sample=1 if campus==82902001& rated_year ==1995; qui replace sample=1 if campus==57905025& rated_year ==2003; qui replace sample=1 if campus==50910001& rated_year ==1995; qui replace sample=1 if campus==210903002& rated_year ==2005; qui replace sample=1 if campus==129906002& rated_year ==1997; qui replace sample=1 if campus==178902001& rated_year ==1994; qui replace sample=1 if campus==3905001& rated_year ==2003; qui replace sample=1 if campus==101920003& rated_year ==2004; qui replace sample=1 if campus==226906001& rated_year ==2005; qui replace sample=1 if campus==203901002& rated_year ==2006; qui replace sample=1 if campus==101912001& rated_year ==1997; qui replace sample=1 if campus==240901003& rated_year ==1996; qui replace sample=1 if campus==101912001& rated_year ==1996; qui replace sample=1 if campus==14909002& rated_year ==1994; qui replace sample=1 if campus==24901001& rated_year ==2001; qui replace sample=1 if campus==30903001& rated_year ==2007; qui replace sample=1 if campus==19905001& rated_year ==2006; qui replace sample=1 if campus==178908001& rated_year ==2004; qui replace sample=1 if campus==19903001& rated_year ==1999; qui replace sample=1 if campus==121905001& rated_year ==2005; qui replace sample=1 if campus==42901001& rated_year ==1999; qui replace sample=1 if campus==57914004& rated_year ==1999; qui replace sample=1 if campus==144901001& rated_year ==2005; qui replace sample=1 if campus==37907002& rated_year ==2001; qui replace sample=1 if campus==57913001& rated_year ==2005; qui replace sample=1 if campus==20908001& rated_year ==1996; qui replace sample=1 if campus==75901001& rated_year ==2002; qui replace sample=1 if campus==57912004& rated_year ==2003; qui replace sample=1 if campus==241902001& rated_year ==1995; qui replace sample=1 if campus==241902001& rated_year ==1996; qui replace sample=1 if campus==241902001& rated_year ==1997; qui replace sample=1 if campus==105906001& rated_year ==2001; qui replace sample=1 if campus==241902001& rated_year ==1999; qui replace sample=1 if campus==235902002& rated_year ==1998; qui replace sample=1 if campus==26902001& rated_year ==2004; qui replace sample=1 if campus==81905002& rated_year ==2008; qui replace sample=1 if campus==241902001& rated_year ==2007; qui replace sample=1 if campus==247901001& rated_year ==2006; qui replace sample=1 if campus==241903001& rated_year ==1994; qui replace sample=1 if campus==14903001& rated_year ==2004; qui replace sample=1 if campus==246902001& rated_year ==2003; qui replace sample=1 if campus==201910002& rated_year ==1997; qui replace sample=1 if campus==57905037& rated_year ==2001; qui replace sample=1 if campus==241903001& rated_year ==2001; qui replace sample=1 if campus==241903001& rated_year ==2002; qui replace sample=1 if campus==241903001& rated_year ==2003; qui replace sample=1 if campus==241903001& rated_year ==2004; qui replace sample=1 if campus==241903001& rated_year ==2005; qui replace sample=1 if campus==145911002& rated_year ==2002; qui replace sample=1 if campus==241903001& rated_year ==2007; qui replace sample=1 if campus==15916001& rated_year ==2000; qui replace sample=1 if campus==241904001& rated_year ==1997; qui replace sample=1 if campus==201903001& rated_year ==1997; qui replace sample=1 if campus==71902006& rated_year ==1999; qui replace sample=1 if campus==108904003& rated_year ==2007; qui replace sample=1 if campus==51901001& rated_year ==2002; qui replace sample=1 if campus==241904001& rated_year ==2002; qui replace sample=1 if campus==241904001& rated_year ==2004; qui replace sample=1 if campus==101912010& rated_year ==2002; qui replace sample=1 if campus==16901001& rated_year ==2004; qui replace sample=1 if campus==241904001& rated_year ==2008; qui replace sample=1 if campus==15915005& rated_year ==2006; qui replace sample=1 if campus==146906001& rated_year ==1999; qui replace sample=1 if campus==120901001& rated_year ==2001; qui replace sample=1 if campus==10902001& rated_year ==1996; qui replace sample=1 if campus==15915001& rated_year ==1996; qui replace sample=1 if campus==123910008& rated_year ==2000; qui replace sample=1 if campus==19902002& rated_year ==1997; qui replace sample=1 if campus==37901001& rated_year ==1997; qui replace sample=1 if campus==241906001& rated_year ==1996; qui replace sample=1 if campus==241906001& rated_year ==2001; qui replace sample=1 if campus==71902006& rated_year ==1998; qui replace sample=1 if campus==129910001& rated_year ==2002; qui replace sample=1 if campus==241906001& rated_year ==2007; qui replace sample=1 if campus==242902001& rated_year ==1994; qui replace sample=1 if campus==143901001& rated_year ==2003; qui replace sample=1 if campus==161912001& rated_year ==2008; qui replace sample=1 if campus==154901001& rated_year ==1997; qui replace sample=1 if campus==68901002& rated_year ==1996; qui replace sample=1 if campus==237904002& rated_year ==2005; qui replace sample=1 if campus==19908001& rated_year ==1998; qui replace sample=1 if campus==221911001& rated_year ==2003; qui replace sample=1 if campus==161920001& rated_year ==1999; qui replace sample=1 if campus==43910004& rated_year ==1998; qui replace sample=1 if campus==188901005& rated_year ==1999; qui replace sample=1 if campus==114904001& rated_year ==1998; qui replace sample=1 if campus==133903001& rated_year ==2006; qui replace sample=1 if campus==169901001& rated_year ==2006; qui replace sample=1 if campus==123908001& rated_year ==1996; qui replace sample=1 if campus==108906001& rated_year ==1995; qui replace sample=1 if campus==220905015& rated_year ==1995; qui replace sample=1 if campus==227901008& rated_year ==1996; qui replace sample=1 if campus==20904001& rated_year ==1999; qui replace sample=1 if campus==107904001& rated_year ==2007; qui replace sample=1 if campus==161901001& rated_year ==1995; qui replace sample=1 if campus==35901001& rated_year ==1999; qui replace sample=1 if campus==205907001& rated_year ==1997; qui replace sample=1 if campus==101912026& rated_year ==2003; qui replace sample=1 if campus==220905011& rated_year ==1997; qui replace sample=1 if campus==238902001& rated_year ==2000; qui replace sample=1 if campus==7905001& rated_year ==1996; qui replace sample=1 if campus==108914001& rated_year ==2006; qui replace sample=1 if campus==64903001& rated_year ==2008; qui replace sample=1 if campus==243901001& rated_year ==1994; qui replace sample=1 if campus==93904002& rated_year ==2000; qui replace sample=1 if campus==230903001& rated_year ==2000; qui replace sample=1 if campus==243901001& rated_year ==1997; qui replace sample=1 if campus==19908001& rated_year ==1996; qui replace sample=1 if campus==155901002& rated_year ==1994; qui replace sample=1 if campus==91901001& rated_year ==2008; qui replace sample=1 if campus==242902001& rated_year ==2001; qui replace sample=1 if campus==243901001& rated_year ==2005; qui replace sample=1 if campus==205907001& rated_year ==2008; qui replace sample=1 if campus==243901001& rated_year ==2008; qui replace sample=1 if campus==228901001& rated_year ==1995; qui replace sample=1 if campus==145906001& rated_year ==2002; qui replace sample=1 if campus==14906001& rated_year ==2001; qui replace sample=1 if campus==161914002& rated_year ==1995; qui replace sample=1 if campus==71905014& rated_year ==2000; qui replace sample=1 if campus==251902001& rated_year ==2003; qui replace sample=1 if campus==243902001& rated_year ==1998; qui replace sample=1 if campus==243902001& rated_year ==1999; qui replace sample=1 if campus==243902001& rated_year ==2000; qui replace sample=1 if campus==31906001& rated_year ==2006; qui replace sample=1 if campus==243902001& rated_year ==2004; qui replace sample=1 if campus==146906001& rated_year ==2000; qui replace sample=1 if campus==3907001& rated_year ==1997; qui replace sample=1 if campus==194903001& rated_year ==2006; qui replace sample=1 if campus==220905016& rated_year ==2005; qui replace sample=1 if campus==220915001& rated_year ==1995; qui replace sample=1 if campus==178904005& rated_year ==2007; qui replace sample=1 if campus==243905001& rated_year ==1995; qui replace sample=1 if campus==243905001& rated_year ==1998; qui replace sample=1 if campus==243905001& rated_year ==2000; qui replace sample=1 if campus==243903001& rated_year ==1999; qui replace sample=1 if campus==187907002& rated_year ==2006; qui replace sample=1 if campus==45902001& rated_year ==2002; qui replace sample=1 if campus==12901001& rated_year ==2005; qui replace sample=1 if campus==246911001& rated_year ==2008; qui replace sample=1 if campus==243905002& rated_year ==2001; qui replace sample=1 if campus==243905002& rated_year ==2004; qui replace sample=1 if campus==101905001& rated_year ==2000; qui replace sample=1 if campus==152909001& rated_year ==1994; qui replace sample=1 if campus==240903001& rated_year ==2004; qui replace sample=1 if campus==91905001& rated_year ==1996; qui replace sample=1 if campus==114901001& rated_year ==2006; qui replace sample=1 if campus==101912012& rated_year ==2006; qui replace sample=1 if campus==243905004& rated_year ==2007; qui replace sample=1 if campus==201902001& rated_year ==2008; qui replace sample=1 if campus==37907002& rated_year ==2002; qui replace sample=1 if campus==13903001& rated_year ==1997; qui replace sample=1 if campus==61908001& rated_year ==1998; qui replace sample=1 if campus==235901001& rated_year ==2008; qui replace sample=1 if campus==116902001& rated_year ==2006; qui replace sample=1 if campus==236901002& rated_year ==1997; qui replace sample=1 if campus==101902003& rated_year ==2007; qui replace sample=1 if campus==101903002& rated_year ==2007; qui replace sample=1 if campus==230903001& rated_year ==2002; qui replace sample=1 if campus==71901002& rated_year ==2007; qui replace sample=1 if campus==91910001& rated_year ==2003; qui replace sample=1 if campus==3905001& rated_year ==1999; qui replace sample=1 if campus==146905001& rated_year ==2003; qui replace sample=1 if campus==212904002& rated_year ==1996; qui replace sample=1 if campus==43905001& rated_year ==1999; qui replace sample=1 if campus==43910007& rated_year ==1998; qui replace sample=1 if campus==108902001& rated_year ==2003; qui replace sample=1 if campus==15905002& rated_year ==1996; qui replace sample=1 if campus==19901001& rated_year ==1999; qui replace sample=1 if campus==220905006& rated_year ==2003; qui replace sample=1 if campus==101907004& rated_year ==2005; qui replace sample=1 if campus==101903001& rated_year ==1995; qui replace sample=1 if campus==57905037& rated_year ==2005; qui replace sample=1 if campus==149901001& rated_year ==2000; qui replace sample=1 if campus==164901001& rated_year ==2008; qui replace sample=1 if campus==230908001& rated_year ==2005; qui replace sample=1 if campus==57905009& rated_year ==1996; qui replace sample=1 if campus==178913001& rated_year ==1994; qui replace sample=1 if campus==140908001& rated_year ==1997; qui replace sample=1 if campus==101912024& rated_year ==2002; qui replace sample=1 if campus==236901002& rated_year ==2004; qui replace sample=1 if campus==66901001& rated_year ==2005; qui replace sample=1 if campus==106901001& rated_year ==1994; qui replace sample=1 if campus==91910001& rated_year ==2008; qui replace sample=1 if campus==171901001& rated_year ==1994; qui replace sample=1 if campus==57909003& rated_year ==2007; qui replace sample=1 if campus==243901001& rated_year ==1998; qui replace sample=1 if campus==227901007& rated_year ==2005; qui replace sample=1 if campus==84910002& rated_year ==1994; qui replace sample=1 if campus==196902001& rated_year ==2008; qui replace sample=1 if campus==31905001& rated_year ==2005; qui replace sample=1 if campus==73905001& rated_year ==1998; qui replace sample=1 if campus==57909002& rated_year ==2007; qui replace sample=1 if campus==101912026& rated_year ==2002; qui replace sample=1 if campus==184908001& rated_year ==1997; qui replace sample=1 if campus==101912009& rated_year ==1994; qui replace sample=1 if campus==202905002& rated_year ==2007; qui replace sample=1 if campus==102905001& rated_year ==2003; qui replace sample=1 if campus==28902001& rated_year ==2008; qui replace sample=1 if campus==121903001& rated_year ==2008; qui replace sample=1 if campus==14906001& rated_year ==1999; qui replace sample=1 if campus==235902002& rated_year ==1999; qui replace sample=1 if campus==92902002& rated_year ==2000; qui replace sample=1 if campus==101907002& rated_year ==2003; qui replace sample=1 if campus==73905001& rated_year ==1999; qui replace sample=1 if campus==170906001& rated_year ==1995; qui replace sample=1 if campus==165901042& rated_year ==2005; qui replace sample=1 if campus==107910001& rated_year ==2005; qui replace sample=1 if campus==49907001& rated_year ==2008; qui replace sample=1 if campus==116901001& rated_year ==2006; qui replace sample=1 if campus==242902001& rated_year ==1999; qui replace sample=1 if campus==107910001& rated_year ==1998; qui replace sample=1 if campus==107910001& rated_year ==1995; qui replace sample=1 if campus==27904001& rated_year ==1997; qui replace sample=1 if campus==227901007& rated_year ==1994; qui replace sample=1 if campus==57905009& rated_year ==1999; qui replace sample=1 if campus==111901001& rated_year ==1998; qui replace sample=1 if campus==220917001& rated_year ==1996; qui replace sample=1 if campus==108906006& rated_year ==2006; qui replace sample=1 if campus==69902001& rated_year ==2006; qui replace sample=1 if campus==26901001& rated_year ==1995; qui replace sample=1 if campus==22901001& rated_year ==1999; qui replace sample=1 if campus==250906001& rated_year ==1999; qui replace sample=1 if campus==20905001& rated_year ==2004; qui replace sample=1 if campus==117904001& rated_year ==1998; qui replace sample=1 if campus==101920001& rated_year ==2002; qui replace sample=1 if campus==107906001& rated_year ==1998; qui replace sample=1 if campus==179901001& rated_year ==2007; qui replace sample=1 if campus==57912002& rated_year ==2001; qui replace sample=1 if campus==107905001& rated_year ==2008; qui replace sample=1 if campus==79907006& rated_year ==2008; qui replace sample=1 if campus==107905001& rated_year ==1999; qui replace sample=1 if campus==107905001& rated_year ==1997; qui replace sample=1 if campus==57907003& rated_year ==1998; qui replace sample=1 if campus==14902001& rated_year ==1996; qui replace sample=1 if campus==101912034& rated_year ==1997; qui replace sample=1 if campus==107904001& rated_year ==2004; qui replace sample=1 if campus==220910001& rated_year ==2001; qui replace sample=1 if campus==61902001& rated_year ==2008; qui replace sample=1 if campus==252903001& rated_year ==1996; qui replace sample=1 if campus==107904001& rated_year ==1995; qui replace sample=1 if campus==107904001& rated_year ==1994; qui replace sample=1 if campus==146904001& rated_year ==1994; qui replace sample=1 if campus==33904001& rated_year ==2005; qui replace sample=1 if campus==18901001& rated_year ==1995; qui replace sample=1 if campus==161919001& rated_year ==1994; qui replace sample=1 if campus==43910004& rated_year ==1996; qui replace sample=1 if campus==161908002& rated_year ==1999; qui replace sample=1 if campus==144901001& rated_year ==2001; qui replace sample=1 if campus==33902001& rated_year ==2005; qui replace sample=1 if campus==107902001& rated_year ==2006; qui replace sample=1 if campus==107902001& rated_year ==2005; qui replace sample=1 if campus==101912002& rated_year ==1998; qui replace sample=1 if campus==15904002& rated_year ==2004; qui replace sample=1 if campus==161914002& rated_year ==1996; qui replace sample=1 if campus==107902001& rated_year ==1998; qui replace sample=1 if campus==186902001& rated_year ==1996; qui replace sample=1 if campus==14903001& rated_year ==1994; qui replace sample=1 if campus==246909004& rated_year ==1995; qui replace sample=1 if campus==251902001& rated_year ==1999; qui replace sample=1 if campus==101917002& rated_year ==2007; qui replace sample=1 if campus==176903001& rated_year ==2004; qui replace sample=1 if campus==107901001& rated_year ==2007; qui replace sample=1 if campus==181908001& rated_year ==1997; qui replace sample=1 if campus==107901001& rated_year ==2000; qui replace sample=1 if campus==84904001& rated_year ==2003; qui replace sample=1 if campus==175902001& rated_year ==2005; qui replace sample=1 if campus==237902001& rated_year ==2004; qui replace sample=1 if campus==101914001& rated_year ==2008; qui replace sample=1 if campus==161914003& rated_year ==2006; qui replace sample=1 if campus==243905001& rated_year ==2006; qui replace sample=1 if campus==106901001& rated_year ==2008; qui replace sample=1 if campus==71905001& rated_year ==2000; qui replace sample=1 if campus==106901001& rated_year ==2005; qui replace sample=1 if campus==220905016& rated_year ==2001; qui replace sample=1 if campus==139911002& rated_year ==2007; qui replace sample=1 if campus==219903001& rated_year ==1996; qui replace sample=1 if campus==57906001& rated_year ==1997; qui replace sample=1 if campus==161907001& rated_year ==2001; qui replace sample=1 if campus==15910004& rated_year ==2008; qui replace sample=1 if campus==228903001& rated_year ==1999; qui replace sample=1 if campus==75901001& rated_year ==2008; qui replace sample=1 if campus==220905006& rated_year ==2007; qui replace sample=1 if campus==238902001& rated_year ==1995; qui replace sample=1 if campus==77902001& rated_year ==2006; qui replace sample=1 if campus==75902001& rated_year ==1998; qui replace sample=1 if campus==229904001& rated_year ==1997; qui replace sample=1 if campus==116909001& rated_year ==1997; qui replace sample=1 if campus==130902001& rated_year ==2001; qui replace sample=1 if campus==28903001& rated_year ==2002; qui replace sample=1 if campus==181905001& rated_year ==1998; qui replace sample=1 if campus==101912011& rated_year ==2005; qui replace sample=1 if campus==121905001& rated_year ==2008; qui replace sample=1 if campus==127904001& rated_year ==1994; qui replace sample=1 if campus==105906001& rated_year ==2003; qui replace sample=1 if campus==220905015& rated_year ==1994; qui replace sample=1 if campus==15907007& rated_year ==1999; qui replace sample=1 if campus==105906001& rated_year ==1998; qui replace sample=1 if campus==105906001& rated_year ==1997; qui replace sample=1 if campus==246913001& rated_year ==1994; qui replace sample=1 if campus==36903001& rated_year ==2004; qui replace sample=1 if campus==84910002& rated_year ==1998; qui replace sample=1 if campus==56901001& rated_year ==2006; qui replace sample=1 if campus==7902001& rated_year ==1994; qui replace sample=1 if campus==123908001& rated_year ==2007; qui replace sample=1 if campus==105905001& rated_year ==1999; qui replace sample=1 if campus==20907001& rated_year ==1995; qui replace sample=1 if campus==101913002& rated_year ==1995; qui replace sample=1 if campus==61912001& rated_year ==1995; qui replace sample=1 if campus==243905001& rated_year ==1994; qui replace sample=1 if campus==105904001& rated_year ==2008; qui replace sample=1 if campus==26902001& rated_year ==2000; qui replace sample=1 if campus==105904001& rated_year ==1999; qui replace sample=1 if campus==105904001& rated_year ==1997; qui replace sample=1 if campus==182903001& rated_year ==2006; qui replace sample=1 if campus==1903001& rated_year ==2006; qui replace sample=1 if campus==152910001& rated_year ==2003; qui replace sample=1 if campus==101912004& rated_year ==1999; qui replace sample=1 if campus==245902001& rated_year ==2002; qui replace sample=1 if campus==200901001& rated_year ==2001; qui replace sample=1 if campus==61912001& rated_year ==2006; qui replace sample=1 if campus==57909003& rated_year ==2005; qui replace sample=1 if campus==161912001& rated_year ==1999; qui replace sample=1 if campus==70910001& rated_year ==1996; qui replace sample=1 if campus==137903001& rated_year ==1994; qui replace sample=1 if campus==84908001& rated_year ==1997; qui replace sample=1 if campus==57909003& rated_year ==1997; qui replace sample=1 if campus==101912033& rated_year ==2007; qui replace sample=1 if campus==227901004& rated_year ==2000; qui replace sample=1 if campus==91914001& rated_year ==1994; qui replace sample=1 if campus==143901001& rated_year ==1997; qui replace sample=1 if campus==91910001& rated_year ==1994; qui replace sample=1 if campus==57905017& rated_year ==1995; qui replace sample=1 if campus==152906001& rated_year ==1996; qui replace sample=1 if campus==146904001& rated_year ==2005; qui replace sample=1 if campus==105902001& rated_year ==2001; qui replace sample=1 if campus==105902001& rated_year ==2000; qui replace sample=1 if campus==146905001& rated_year ==2002; qui replace sample=1 if campus==14902001& rated_year ==2006; qui replace sample=1 if campus==188903001& rated_year ==1996; qui replace sample=1 if campus==101912034& rated_year ==1995; qui replace sample=1 if campus==107902001& rated_year ==2000; qui replace sample=1 if campus==227901002& rated_year ==2006; qui replace sample=1 if campus==91910001& rated_year ==1999; qui replace sample=1 if campus==101919002& rated_year ==1995; qui replace sample=1 if campus==212905003& rated_year ==1997; qui replace sample=1 if campus==107906001& rated_year ==1994; qui replace sample=1 if campus==57905021& rated_year ==2000; qui replace sample=1 if campus==228901001& rated_year ==2008; qui replace sample=1 if campus==15910004& rated_year ==2007; qui replace sample=1 if campus==212906001& rated_year ==1995; qui replace sample=1 if campus==18902001& rated_year ==2002; qui replace sample=1 if campus==142901001& rated_year ==2005; qui replace sample=1 if campus==3906001& rated_year ==2001; qui replace sample=1 if campus==15910002& rated_year ==1997; qui replace sample=1 if campus==10902001& rated_year ==2008; qui replace sample=1 if campus==101907003& rated_year ==2008; qui replace sample=1 if campus==185903001& rated_year ==1998; qui replace sample=1 if campus==161910001& rated_year ==2004; qui replace sample=1 if campus==221912001& rated_year ==2003; qui replace sample=1 if campus==15915007& rated_year ==2008; qui replace sample=1 if campus==101912001& rated_year ==2000; qui replace sample=1 if campus==174906001& rated_year ==2000; qui replace sample=1 if campus==95903001& rated_year ==2001; qui replace sample=1 if campus==246908001& rated_year ==1995; qui replace sample=1 if campus==199902002& rated_year ==2004; qui replace sample=1 if campus==174908001& rated_year ==1998; qui replace sample=1 if campus==91903001& rated_year ==1997; qui replace sample=1 if campus==234902001& rated_year ==1999; qui replace sample=1 if campus==194904002& rated_year ==2001; qui replace sample=1 if campus==183902001& rated_year ==1999; qui replace sample=1 if campus==102906001& rated_year ==2004; qui replace sample=1 if campus==102906001& rated_year ==2003; qui replace sample=1 if campus==113906001& rated_year ==1994; qui replace sample=1 if campus==191901001& rated_year ==2001; qui replace sample=1 if campus==248902001& rated_year ==2001; qui replace sample=1 if campus==102906001& rated_year ==1996; qui replace sample=1 if campus==15915007& rated_year ==2001; qui replace sample=1 if campus==161916001& rated_year ==2003; qui replace sample=1 if campus==102905001& rated_year ==2004; qui replace sample=1 if campus==101914005& rated_year ==2006; qui replace sample=1 if campus==170902003& rated_year ==1997; qui replace sample=1 if campus==102905001& rated_year ==2000; qui replace sample=1 if campus==228901001& rated_year ==2001; qui replace sample=1 if campus==15910005& rated_year ==1996; qui replace sample=1 if campus==57910003& rated_year ==2008; qui replace sample=1 if campus==70910001& rated_year ==2003; qui replace sample=1 if campus==100903002& rated_year ==1999; qui replace sample=1 if campus==57905015& rated_year ==2007; qui replace sample=1 if campus==15907001& rated_year ==2005; qui replace sample=1 if campus==178912001& rated_year ==1998; qui replace sample=1 if campus==102904002& rated_year ==2005; qui replace sample=1 if campus==220915001& rated_year ==2000; qui replace sample=1 if campus==252901001& rated_year ==1996; qui replace sample=1 if campus==31903003& rated_year ==1997; qui replace sample=1 if campus==227901002& rated_year ==2000; qui replace sample=1 if campus==123910008& rated_year ==1996; qui replace sample=1 if campus==102903002& rated_year ==2008; qui replace sample=1 if campus==102903002& rated_year ==2007; qui replace sample=1 if campus==116915001& rated_year ==2007; qui replace sample=1 if campus==102903002& rated_year ==2002; qui replace sample=1 if campus==102903002& rated_year ==1999; qui replace sample=1 if campus==102903002& rated_year ==1998; qui replace sample=1 if campus==102903002& rated_year ==1997; qui replace sample=1 if campus==57911001& rated_year ==1994; qui replace sample=1 if campus==66903002& rated_year ==2002; qui replace sample=1 if campus==161916001& rated_year ==2002; qui replace sample=1 if campus==45905002& rated_year ==1996; qui replace sample=1 if campus==31901001& rated_year ==1999; qui replace sample=1 if campus==188901002& rated_year ==2006; qui replace sample=1 if campus==31901004& rated_year ==2003; qui replace sample=1 if campus==67903001& rated_year ==2004; qui replace sample=1 if campus==83903001& rated_year ==2004; qui replace sample=1 if campus==152903001& rated_year ==2006; qui replace sample=1 if campus==218901001& rated_year ==2007; qui replace sample=1 if campus==68901045& rated_year ==2000; qui replace sample=1 if campus==191901002& rated_year ==1997; qui replace sample=1 if campus==145911002& rated_year ==2003; qui replace sample=1 if campus==102902001& rated_year ==2000; qui replace sample=1 if campus==53001001& rated_year ==1998; qui replace sample=1 if campus==36903001& rated_year ==2000; qui replace sample=1 if campus==165901044& rated_year ==2002; qui replace sample=1 if campus==15901001& rated_year ==2005; qui replace sample=1 if campus==102901002& rated_year ==2005; qui replace sample=1 if campus==161914003& rated_year ==1996; qui replace sample=1 if campus==102901002& rated_year ==2001; qui replace sample=1 if campus==181901001& rated_year ==2001; qui replace sample=1 if campus==101912025& rated_year ==2006; qui replace sample=1 if campus==84910003& rated_year ==2002; qui replace sample=1 if campus==9901001& rated_year ==2006; qui replace sample=1 if campus==102901002& rated_year ==1995; qui replace sample=1 if campus==71905005& rated_year ==2005; qui replace sample=1 if campus==71903001& rated_year ==2003; qui replace sample=1 if campus==220905001& rated_year ==2007; qui replace sample=1 if campus==5902001& rated_year ==1994; qui replace sample=1 if campus==3904001& rated_year ==1996; qui replace sample=1 if campus==57905018& rated_year ==1997; qui replace sample=1 if campus==253901001& rated_year ==2006; qui replace sample=1 if campus==19906001& rated_year ==2005; qui replace sample=1 if campus==229903001& rated_year ==1999; qui replace sample=1 if campus==129901001& rated_year ==2002; qui replace sample=1 if campus==205902001& rated_year ==1995; qui replace sample=1 if campus==117901001& rated_year ==2005; qui replace sample=1 if campus==101912007& rated_year ==2002; qui replace sample=1 if campus==97902001& rated_year ==1998; qui replace sample=1 if campus==101924001& rated_year ==2008; qui replace sample=1 if campus==18902001& rated_year ==1994; qui replace sample=1 if campus==101924001& rated_year ==2001; qui replace sample=1 if campus==101924001& rated_year ==2000; qui replace sample=1 if campus==146901001& rated_year ==2007; qui replace sample=1 if campus==57909002& rated_year ==2000; qui replace sample=1 if campus==59901001& rated_year ==1999; qui replace sample=1 if campus==101915001& rated_year ==2002; qui replace sample=1 if campus==200902001& rated_year ==1994; qui replace sample=1 if campus==165901044& rated_year ==2001; qui replace sample=1 if campus==253901001& rated_year ==1994; qui replace sample=1 if campus==15910005& rated_year ==1995; qui replace sample=1 if campus==181908001& rated_year ==2001; qui replace sample=1 if campus==161901001& rated_year ==1997; qui replace sample=1 if campus==57907003& rated_year ==2005; qui replace sample=1 if campus==101912001& rated_year ==1999; qui replace sample=1 if campus==161923001& rated_year ==2000; qui replace sample=1 if campus==101912007& rated_year ==2005; qui replace sample=1 if campus==57905025& rated_year ==1998; qui replace sample=1 if campus==92903001& rated_year ==1995; qui replace sample=1 if campus==20905001& rated_year ==2006; qui replace sample=1 if campus==234904001& rated_year ==1996; qui replace sample=1 if campus==21902005& rated_year ==1996; qui replace sample=1 if campus==154901001& rated_year ==1995; qui replace sample=1 if campus==169902001& rated_year ==2008; qui replace sample=1 if campus==57905018& rated_year ==2001; qui replace sample=1 if campus==101920006& rated_year ==2006; qui replace sample=1 if campus==143901001& rated_year ==2006; qui replace sample=1 if campus==70903002& rated_year ==1995; qui replace sample=1 if campus==156902001& rated_year ==2001; qui replace sample=1 if campus==15907182& rated_year ==2008; qui replace sample=1 if campus==101909002& rated_year ==2001; qui replace sample=1 if campus==123910008& rated_year ==2002; qui replace sample=1 if campus==145901002& rated_year ==2005; qui replace sample=1 if campus==231901001& rated_year ==2008; qui replace sample=1 if campus==57903001& rated_year ==1999; qui replace sample=1 if campus==19905001& rated_year ==2003; qui replace sample=1 if campus==101912020& rated_year ==2007; qui replace sample=1 if campus==79907002& rated_year ==2004; qui replace sample=1 if campus==8902001& rated_year ==2007; qui replace sample=1 if campus==170907001& rated_year ==2005; qui replace sample=1 if campus==232903002& rated_year ==2000; qui replace sample=1 if campus==153904001& rated_year ==1999; qui replace sample=1 if campus==101920006& rated_year ==2004; qui replace sample=1 if campus==111901001& rated_year ==2004; qui replace sample=1 if campus==57905007& rated_year ==2005; qui replace sample=1 if campus==212909001& rated_year ==1995; qui replace sample=1 if campus==13901001& rated_year ==2004; qui replace sample=1 if campus==179901001& rated_year ==1996; qui replace sample=1 if campus==166901002& rated_year ==2008; qui replace sample=1 if campus==123910008& rated_year ==2005; qui replace sample=1 if campus==36902001& rated_year ==2001; qui replace sample=1 if campus==101912007& rated_year ==2003; qui replace sample=1 if campus==71901002& rated_year ==1999; qui replace sample=1 if campus==15907005& rated_year ==1997; qui replace sample=1 if campus==101920005& rated_year ==1995; qui replace sample=1 if campus==73905001& rated_year ==2001; qui replace sample=1 if campus==101920003& rated_year ==2007; qui replace sample=1 if campus==38901001& rated_year ==2006; qui replace sample=1 if campus==156902001& rated_year ==2006; qui replace sample=1 if campus==129906002& rated_year ==2005; qui replace sample=1 if campus==2901001& rated_year ==1995; qui replace sample=1 if campus==101920001& rated_year ==2007; qui replace sample=1 if campus==15910005& rated_year ==1994; qui replace sample=1 if campus==101920001& rated_year ==2003; qui replace sample=1 if campus==152910001& rated_year ==1996; qui replace sample=1 if campus==31913001& rated_year ==2004; qui replace sample=1 if campus==71905001& rated_year ==2007; qui replace sample=1 if campus==229905001& rated_year ==2000; qui replace sample=1 if campus==99903001& rated_year ==2000; qui replace sample=1 if campus==101912008& rated_year ==2000; qui replace sample=1 if campus==230902002& rated_year ==1994; qui replace sample=1 if campus==91914001& rated_year ==1997; qui replace sample=1 if campus==30906001& rated_year ==1998; qui replace sample=1 if campus==227901004& rated_year ==1999; qui replace sample=1 if campus==109911001& rated_year ==2002; qui replace sample=1 if campus==57912003& rated_year ==2000; qui replace sample=1 if campus==14903001& rated_year ==2007; qui replace sample=1 if campus==201914001& rated_year ==1997; qui replace sample=1 if campus==180901001& rated_year ==2004; qui replace sample=1 if campus==101911003& rated_year ==1999; qui replace sample=1 if campus==101913001& rated_year ==1995; qui replace sample=1 if campus==113902002& rated_year ==1994; qui replace sample=1 if campus==107906001& rated_year ==1997; qui replace sample=1 if campus==18902001& rated_year ==2003; qui replace sample=1 if campus==61902001& rated_year ==1995; qui replace sample=1 if campus==221912001& rated_year ==2001; qui replace sample=1 if campus==228901001& rated_year ==2007; qui replace sample=1 if campus==163904001& rated_year ==1998; qui replace sample=1 if campus==228903001& rated_year ==2004; qui replace sample=1 if campus==40901001& rated_year ==2002; qui replace sample=1 if campus==54903001& rated_year ==2004; qui replace sample=1 if campus==220902002& rated_year ==1998; qui replace sample=1 if campus==149901001& rated_year ==2003; qui replace sample=1 if campus==82903001& rated_year ==2007; qui replace sample=1 if campus==133903001& rated_year ==1999; qui replace sample=1 if campus==101919002& rated_year ==2001; qui replace sample=1 if campus==56901001& rated_year ==2007; qui replace sample=1 if campus==15915004& rated_year ==1997; qui replace sample=1 if campus==100905001& rated_year ==2003; qui replace sample=1 if campus==188901001& rated_year ==1997; qui replace sample=1 if campus==101902001& rated_year ==2000; qui replace sample=1 if campus==101919001& rated_year ==2004; qui replace sample=1 if campus==188901004& rated_year ==2007; qui replace sample=1 if campus==101912011& rated_year ==1999; qui replace sample=1 if campus==57914003& rated_year ==2006; qui replace sample=1 if campus==221901001& rated_year ==2001; qui replace sample=1 if campus==101919001& rated_year ==1997; qui replace sample=1 if campus==36901001& rated_year ==2004; qui replace sample=1 if campus==133903001& rated_year ==2008; qui replace sample=1 if campus==14902001& rated_year ==2004; qui replace sample=1 if campus==182902001& rated_year ==2005; qui replace sample=1 if campus==57905022& rated_year ==1995; qui replace sample=1 if campus==36902001& rated_year ==1995; qui replace sample=1 if campus==15915007& rated_year ==2003; qui replace sample=1 if campus==205907001& rated_year ==2001; qui replace sample=1 if campus==201914001& rated_year ==2001; qui replace sample=1 if campus==210903002& rated_year ==1994; qui replace sample=1 if campus==79901002& rated_year ==2002; qui replace sample=1 if campus==67902001& rated_year ==2002; qui replace sample=1 if campus==33904001& rated_year ==2002; qui replace sample=1 if campus==116915001& rated_year ==1997; qui replace sample=1 if campus==101912010& rated_year ==1998; qui replace sample=1 if campus==172905002& rated_year ==1997; qui replace sample=1 if campus==241906001& rated_year ==2005; qui replace sample=1 if campus==62901001& rated_year ==1997; qui replace sample=1 if campus==175902001& rated_year ==2002; qui replace sample=1 if campus==91918001& rated_year ==2005; qui replace sample=1 if campus==195901001& rated_year ==2001; qui replace sample=1 if campus==174906001& rated_year ==2002; qui replace sample=1 if campus==178913001& rated_year ==2003; qui replace sample=1 if campus==241902001& rated_year ==2000; qui replace sample=1 if campus==101917004& rated_year ==2007; qui replace sample=1 if campus==101917004& rated_year ==2006; qui replace sample=1 if campus==101917004& rated_year ==2005; qui replace sample=1 if campus==3906001& rated_year ==2004; qui replace sample=1 if campus==19907002& rated_year ==2001; qui replace sample=1 if campus==34901001& rated_year ==1996; qui replace sample=1 if campus==101917004& rated_year ==1996; qui replace sample=1 if campus==220917001& rated_year ==2005; qui replace sample=1 if campus==101917003& rated_year ==2002; qui replace sample=1 if campus==125902001& rated_year ==1997; qui replace sample=1 if campus==101917003& rated_year ==1996; qui replace sample=1 if campus==30902001& rated_year ==1998; qui replace sample=1 if campus==246909003& rated_year ==2001; qui replace sample=1 if campus==227901013& rated_year ==2006; qui replace sample=1 if campus==101917002& rated_year ==2004; qui replace sample=1 if campus==31909001& rated_year ==2007; qui replace sample=1 if campus==57905033& rated_year ==2005; qui replace sample=1 if campus==101917002& rated_year ==1997; qui replace sample=1 if campus==101917002& rated_year ==1996; qui replace sample=1 if campus==15910005& rated_year ==2003; qui replace sample=1 if campus==75902001& rated_year ==2000; qui replace sample=1 if campus==101912008& rated_year ==2001; qui replace sample=1 if campus==178915001& rated_year ==2007; qui replace sample=1 if campus==61902002& rated_year ==2004; qui replace sample=1 if campus==126907001& rated_year ==1994; qui replace sample=1 if campus==220917001& rated_year ==2000; qui replace sample=1 if campus==15907005& rated_year ==2008; qui replace sample=1 if campus==39902001& rated_year ==2005; qui replace sample=1 if campus==101912007& rated_year ==1996; qui replace sample=1 if campus==108908001& rated_year ==2007; qui replace sample=1 if campus==225902001& rated_year ==2008; qui replace sample=1 if campus==129906002& rated_year ==2001; qui replace sample=1 if campus==165902001& rated_year ==2003; qui replace sample=1 if campus==25909001& rated_year ==2000; qui replace sample=1 if campus==101916001& rated_year ==2006; qui replace sample=1 if campus==92906002& rated_year ==2003; qui replace sample=1 if campus==101916001& rated_year ==2001; qui replace sample=1 if campus==69902001& rated_year ==2000; qui replace sample=1 if campus==249906001& rated_year ==1996; qui replace sample=1 if campus==244903001& rated_year ==1996; qui replace sample=1 if campus==61902004& rated_year ==1995; qui replace sample=1 if campus==102901002& rated_year ==1997; qui replace sample=1 if campus==33902001& rated_year ==1998; qui replace sample=1 if campus==18907001& rated_year ==2002; qui replace sample=1 if campus==126903001& rated_year ==1998; qui replace sample=1 if campus==57905036& rated_year ==2005; qui replace sample=1 if campus==146906001& rated_year ==1998; qui replace sample=1 if campus==43902001& rated_year ==2004; qui replace sample=1 if campus==58906001& rated_year ==2006; qui replace sample=1 if campus==68901003& rated_year ==1999; qui replace sample=1 if campus==141901001& rated_year ==2005; qui replace sample=1 if campus==15911001& rated_year ==2000; qui replace sample=1 if campus==247904001& rated_year ==1996; qui replace sample=1 if campus==101915003& rated_year ==2004; qui replace sample=1 if campus==101915003& rated_year ==2003; qui replace sample=1 if campus==127903001& rated_year ==2002; qui replace sample=1 if campus==15910004& rated_year ==1994; qui replace sample=1 if campus==101915003& rated_year ==1996; qui replace sample=1 if campus==15907005& rated_year ==2007; qui replace sample=1 if campus==57905018& rated_year ==1995; qui replace sample=1 if campus==14907001& rated_year ==2008; qui replace sample=1 if campus==101915002& rated_year ==2005; qui replace sample=1 if campus==57912002& rated_year ==1994; qui replace sample=1 if campus==165902001& rated_year ==1999; qui replace sample=1 if campus==101915002& rated_year ==1999; qui replace sample=1 if campus==101915002& rated_year ==1998; qui replace sample=1 if campus==15905003& rated_year ==2006; qui replace sample=1 if campus==101915001& rated_year ==2008; qui replace sample=1 if campus==101915001& rated_year ==2007; qui replace sample=1 if campus==66902001& rated_year ==1997; qui replace sample=1 if campus==72903001& rated_year ==2000; qui replace sample=1 if campus==101915001& rated_year ==1995; qui replace sample=1 if campus==57905036& rated_year ==2000; qui replace sample=1 if campus==27904001& rated_year ==1994; qui replace sample=1 if campus==154901001& rated_year ==1999; qui replace sample=1 if campus==220905005& rated_year ==2005; qui replace sample=1 if campus==4901001& rated_year ==1998; qui replace sample=1 if campus==161918001& rated_year ==2005; qui replace sample=1 if campus==14907001& rated_year ==2005; qui replace sample=1 if campus==251901001& rated_year ==2007; qui replace sample=1 if campus==121906001& rated_year ==2002; qui replace sample=1 if campus==70910001& rated_year ==1997; qui replace sample=1 if campus==214903001& rated_year ==2008; qui replace sample=1 if campus==101914002& rated_year ==2008; qui replace sample=1 if campus==178904005& rated_year ==1998; qui replace sample=1 if campus==229903001& rated_year ==2001; qui replace sample=1 if campus==145901002& rated_year ==1996; qui replace sample=1 if campus==15909001& rated_year ==2000; qui replace sample=1 if campus==57905026& rated_year ==1997; qui replace sample=1 if campus==101914005& rated_year ==2008; qui replace sample=1 if campus==161918001& rated_year ==2000; qui replace sample=1 if campus==205903001& rated_year ==2003; qui replace sample=1 if campus==223901001& rated_year ==2008; qui replace sample=1 if campus==202905002& rated_year ==2002; qui replace sample=1 if campus==101914005& rated_year ==1998; qui replace sample=1 if campus==108912001& rated_year ==2004; qui replace sample=1 if campus==71906001& rated_year ==2008; qui replace sample=1 if campus==116915001& rated_year ==2003; qui replace sample=1 if campus==155901002& rated_year ==1997; qui replace sample=1 if campus==230903001& rated_year ==1995; qui replace sample=1 if campus==211902001& rated_year ==1994; qui replace sample=1 if campus==71905005& rated_year ==1996; qui replace sample=1 if campus==238902001& rated_year ==2002; qui replace sample=1 if campus==57905013& rated_year ==2000; qui replace sample=1 if campus==43907002& rated_year ==2001; qui replace sample=1 if campus==178904003& rated_year ==2008; qui replace sample=1 if campus==201902001& rated_year ==2004; qui replace sample=1 if campus==213901001& rated_year ==1997; qui replace sample=1 if campus==101914001& rated_year ==1998; qui replace sample=1 if campus==57914004& rated_year ==2006; qui replace sample=1 if campus==101917004& rated_year ==2000; qui replace sample=1 if campus==92907001& rated_year ==2004; qui replace sample=1 if campus==236901002& rated_year ==2007; qui replace sample=1 if campus==101902003& rated_year ==2008; qui replace sample=1 if campus==15910003& rated_year ==2001; qui replace sample=1 if campus==59901001& rated_year ==2003; qui replace sample=1 if campus==194904002& rated_year ==1996; qui replace sample=1 if campus==101915003& rated_year ==1997; qui replace sample=1 if campus==79906001& rated_year ==2002; qui replace sample=1 if campus==101920001& rated_year ==2005; qui replace sample=1 if campus==181901001& rated_year ==2006; qui replace sample=1 if campus==250906001& rated_year ==2007; qui replace sample=1 if campus==19902002& rated_year ==1999; qui replace sample=1 if campus==176903001& rated_year ==1998; qui replace sample=1 if campus==230902002& rated_year ==2002; qui replace sample=1 if campus==239903001& rated_year ==1996; qui replace sample=1 if campus==57906001& rated_year ==1998; qui replace sample=1 if campus==32902002& rated_year ==1994; qui replace sample=1 if campus==101913002& rated_year ==1997; qui replace sample=1 if campus==15915006& rated_year ==1995; qui replace sample=1 if campus==31916005& rated_year ==1994; qui replace sample=1 if campus==107906001& rated_year ==2001; qui replace sample=1 if campus==152903001& rated_year ==2001; qui replace sample=1 if campus==101913001& rated_year ==2001; qui replace sample=1 if campus==57914004& rated_year ==2004; qui replace sample=1 if campus==101907004& rated_year ==2003; qui replace sample=1 if campus==101913001& rated_year ==1998; qui replace sample=1 if campus==227901005& rated_year ==1994; qui replace sample=1 if campus==4901001& rated_year ==1997; qui replace sample=1 if campus==92902002& rated_year ==1996; qui replace sample=1 if campus==152902001& rated_year ==1996; qui replace sample=1 if campus==71905005& rated_year ==2004; qui replace sample=1 if campus==155901002& rated_year ==2005; qui replace sample=1 if campus==30901001& rated_year ==2002; qui replace sample=1 if campus==31901007& rated_year ==2001; qui replace sample=1 if campus==101912019& rated_year ==1998; qui replace sample=1 if campus==243905004& rated_year ==2003; qui replace sample=1 if campus==31901004& rated_year ==2006; qui replace sample=1 if campus==129903001& rated_year ==2006; qui replace sample=1 if campus==116916001& rated_year ==2002; qui replace sample=1 if campus==212903001& rated_year ==1995; qui replace sample=1 if campus==57914003& rated_year ==1999; qui replace sample=1 if campus==31916001& rated_year ==2008; qui replace sample=1 if campus==178904005& rated_year ==1996; qui replace sample=1 if campus==202903001& rated_year ==2005; qui replace sample=1 if campus==25901001& rated_year ==2002; qui replace sample=1 if campus==101907005& rated_year ==2003; qui replace sample=1 if campus==71902006& rated_year ==1996; qui replace sample=1 if campus==71905003& rated_year ==1994; qui replace sample=1 if campus==210901001& rated_year ==2004; qui replace sample=1 if campus==225902001& rated_year ==2001; qui replace sample=1 if campus==200904001& rated_year ==1998; qui replace sample=1 if campus==10902001& rated_year ==2007; qui replace sample=1 if campus==1908002& rated_year ==2003; qui replace sample=1 if campus==111901001& rated_year ==2001; qui replace sample=1 if campus==79907002& rated_year ==1997; qui replace sample=1 if campus==239901001& rated_year ==2004; qui replace sample=1 if campus==187901001& rated_year ==2003; qui replace sample=1 if campus==84910003& rated_year ==1999; qui replace sample=1 if campus==15915007& rated_year ==2005; qui replace sample=1 if campus==36901001& rated_year ==1994; qui replace sample=1 if campus==72903001& rated_year ==1998; qui replace sample=1 if campus==57912004& rated_year ==2006; qui replace sample=1 if campus==16902001& rated_year ==1995; qui replace sample=1 if campus==123910001& rated_year ==2005; qui replace sample=1 if campus==37904002& rated_year ==2001; qui replace sample=1 if campus==241904001& rated_year ==1999; qui replace sample=1 if campus==14907001& rated_year ==2006; qui replace sample=1 if campus==57905009& rated_year ==2004; qui replace sample=1 if campus==234902001& rated_year ==2001; qui replace sample=1 if campus==178914001& rated_year ==2000; qui replace sample=1 if campus==196903001& rated_year ==2001; qui replace sample=1 if campus==171901001& rated_year ==2004; qui replace sample=1 if campus==101917001& rated_year ==2001; qui replace sample=1 if campus==108906006& rated_year ==2008; qui replace sample=1 if campus==38901001& rated_year ==2002; qui replace sample=1 if campus==174904002& rated_year ==1996; qui replace sample=1 if campus==213901001& rated_year ==2003; qui replace sample=1 if campus==71901001& rated_year ==2007; qui replace sample=1 if campus==121904001& rated_year ==1999; qui replace sample=1 if campus==178903001& rated_year ==2005; qui replace sample=1 if campus==175904001& rated_year ==1994; qui replace sample=1 if campus==26901001& rated_year ==2000; qui replace sample=1 if campus==57905032& rated_year ==1999; qui replace sample=1 if campus==116903001& rated_year ==1995; qui replace sample=1 if campus==44902001& rated_year ==2002; qui replace sample=1 if campus==180902001& rated_year ==1999; qui replace sample=1 if campus==57906001& rated_year ==2003; qui replace sample=1 if campus==133904001& rated_year ==1999; qui replace sample=1 if campus==176903001& rated_year ==2001; qui replace sample=1 if campus==220905001& rated_year ==1996; qui replace sample=1 if campus==163901001& rated_year ==2002; qui replace sample=1 if campus==64903001& rated_year ==2000; qui replace sample=1 if campus==18901001& rated_year ==2004; qui replace sample=1 if campus==57912004& rated_year ==2000; qui replace sample=1 if campus==14901001& rated_year ==1994; qui replace sample=1 if campus==20904001& rated_year ==2008; qui replace sample=1 if campus==170902001& rated_year ==1997; qui replace sample=1 if campus==101909002& rated_year ==1996; qui replace sample=1 if campus==15904002& rated_year ==2000; qui replace sample=1 if campus==220917001& rated_year ==1995; qui replace sample=1 if campus==31901004& rated_year ==2001; qui replace sample=1 if campus==105905001& rated_year ==1994; qui replace sample=1 if campus==146901001& rated_year ==2004; qui replace sample=1 if campus==19902002& rated_year ==2000; qui replace sample=1 if campus==77902001& rated_year ==2003; qui replace sample=1 if campus==108906006& rated_year ==1997; qui replace sample=1 if campus==139911002& rated_year ==2004; qui replace sample=1 if campus==110907001& rated_year ==1997; qui replace sample=1 if campus==57905013& rated_year ==1995; qui replace sample=1 if campus==220905002& rated_year ==2006; qui replace sample=1 if campus==178912001& rated_year ==2005; qui replace sample=1 if campus==101912017& rated_year ==1997; qui replace sample=1 if campus==201902001& rated_year ==2002; qui replace sample=1 if campus==101907007& rated_year ==1995; qui replace sample=1 if campus==201908001& rated_year ==1999; qui replace sample=1 if campus==92907001& rated_year ==2006; qui replace sample=1 if campus==15917001& rated_year ==1995; qui replace sample=1 if campus==108912001& rated_year ==1994; qui replace sample=1 if campus==139911002& rated_year ==1999; qui replace sample=1 if campus==220901004& rated_year ==1999; qui replace sample=1 if campus==62901001& rated_year ==2006; qui replace sample=1 if campus==70910001& rated_year ==1995; qui replace sample=1 if campus==3906001& rated_year ==2000; qui replace sample=1 if campus==3904001& rated_year ==1994; qui replace sample=1 if campus==227901007& rated_year ==2000; qui replace sample=1 if campus==32902002& rated_year ==1996; qui replace sample=1 if campus==54903001& rated_year ==2005; qui replace sample=1 if campus==16902001& rated_year ==2000; qui replace sample=1 if campus==57905009& rated_year ==2002; qui replace sample=1 if campus==1904001& rated_year ==2002; qui replace sample=1 if campus==19903001& rated_year ==2002; qui replace sample=1 if campus==205902001& rated_year ==2006; qui replace sample=1 if campus==194903001& rated_year ==2005; qui replace sample=1 if campus==40901001& rated_year ==2001; qui replace sample=1 if campus==157901001& rated_year ==1999; qui replace sample=1 if campus==102904002& rated_year ==2004; qui replace sample=1 if campus==161901001& rated_year ==2004; qui replace sample=1 if campus==170907001& rated_year ==1997; qui replace sample=1 if campus==101902004& rated_year ==1997; qui replace sample=1 if campus==51901001& rated_year ==2007; qui replace sample=1 if campus==123907002& rated_year ==1997; qui replace sample=1 if campus==227901008& rated_year ==2007; qui replace sample=1 if campus==120905001& rated_year ==1996; qui replace sample=1 if campus==227901003& rated_year ==2002; qui replace sample=1 if campus==37901001& rated_year ==2007; qui replace sample=1 if campus==91906002& rated_year ==2004; qui replace sample=1 if campus==225902001& rated_year ==1998; qui replace sample=1 if campus==46901001& rated_year ==1999; qui replace sample=1 if campus==231901001& rated_year ==2005; qui replace sample=1 if campus==246907001& rated_year ==1995; qui replace sample=1 if campus==207901001& rated_year ==2004; qui replace sample=1 if campus==247904001& rated_year ==1995; qui replace sample=1 if campus==220905004& rated_year ==2007; qui replace sample=1 if campus==57905008& rated_year ==1995; qui replace sample=1 if campus==116903001& rated_year ==2006; qui replace sample=1 if campus==101913002& rated_year ==1999; qui replace sample=1 if campus==101912034& rated_year ==2008; qui replace sample=1 if campus==101912034& rated_year ==2003; qui replace sample=1 if campus==101912034& rated_year ==2002; qui replace sample=1 if campus==201902001& rated_year ==1994; qui replace sample=1 if campus==83903001& rated_year ==2000; qui replace sample=1 if campus==101912034& rated_year ==1994; qui replace sample=1 if campus==165902001& rated_year ==1996; qui replace sample=1 if campus==57910002& rated_year ==2008; qui replace sample=1 if campus==101912033& rated_year ==2004; qui replace sample=1 if campus==101912033& rated_year ==2003; qui replace sample=1 if campus==101912033& rated_year ==2001; qui replace sample=1 if campus==8902001& rated_year ==2008; qui replace sample=1 if campus==7901001& rated_year ==2004; qui replace sample=1 if campus==101912033& rated_year ==1997; qui replace sample=1 if campus==181907001& rated_year ==2003; qui replace sample=1 if campus==101912033& rated_year ==1995; qui replace sample=1 if campus==202903001& rated_year ==2004; qui replace sample=1 if campus==79907006& rated_year ==1998; qui replace sample=1 if campus==31903002& rated_year ==2007; qui replace sample=1 if campus==57905006& rated_year ==1994; qui replace sample=1 if campus==26903002& rated_year ==1998; qui replace sample=1 if campus==92908001& rated_year ==2001; qui replace sample=1 if campus==227901007& rated_year ==2003; qui replace sample=1 if campus==229901001& rated_year ==2004; qui replace sample=1 if campus==246902001& rated_year ==2004; qui replace sample=1 if campus==71906001& rated_year ==2004; qui replace sample=1 if campus==205904001& rated_year ==2001; qui replace sample=1 if campus==15917001& rated_year ==1999; qui replace sample=1 if campus==232902001& rated_year ==2002; qui replace sample=1 if campus==161916001& rated_year ==1995; qui replace sample=1 if campus==4901001& rated_year ==2007; qui replace sample=1 if campus==182903001& rated_year ==2007; qui replace sample=1 if campus==101902001& rated_year ==2004; qui replace sample=1 if campus==57914002& rated_year ==1999; qui replace sample=1 if campus==19912001& rated_year ==2000; qui replace sample=1 if campus==92903001& rated_year ==2001; qui replace sample=1 if campus==188903001& rated_year ==2002; qui replace sample=1 if campus==101917001& rated_year ==1998; qui replace sample=1 if campus==26902001& rated_year ==1998; qui replace sample=1 if campus==201908001& rated_year ==2005; qui replace sample=1 if campus==129904001& rated_year ==1996; qui replace sample=1 if campus==178912001& rated_year ==1995; qui replace sample=1 if campus==101912025& rated_year ==2000; qui replace sample=1 if campus==97903001& rated_year ==1996; qui replace sample=1 if campus==101903001& rated_year ==2008; qui replace sample=1 if campus==19907002& rated_year ==1994; qui replace sample=1 if campus==96904001& rated_year ==2000; qui replace sample=1 if campus==212902001& rated_year ==1999; qui replace sample=1 if campus==101912024& rated_year ==2003; qui replace sample=1 if campus==53001001& rated_year ==2005; qui replace sample=1 if campus==101912024& rated_year ==2001; qui replace sample=1 if campus==232903001& rated_year ==2004; qui replace sample=1 if campus==250905001& rated_year ==2004; qui replace sample=1 if campus==105906001& rated_year ==1996; qui replace sample=1 if campus==57909004& rated_year ==2000; qui replace sample=1 if campus==204901001& rated_year ==2008; qui replace sample=1 if campus==230903001& rated_year ==2004; qui replace sample=1 if campus==209901001& rated_year ==2006; qui replace sample=1 if campus==220918001& rated_year ==1996; qui replace sample=1 if campus==91914001& rated_year ==2000; qui replace sample=1 if campus==34907001& rated_year ==1998; qui replace sample=1 if campus==152902001& rated_year ==1994; qui replace sample=1 if campus==3905001& rated_year ==2001; qui replace sample=1 if campus==141901001& rated_year ==2000; qui replace sample=1 if campus==15915005& rated_year ==2003; qui replace sample=1 if campus==101912020& rated_year ==2002; qui replace sample=1 if campus==101912020& rated_year ==1999; qui replace sample=1 if campus==250907001& rated_year ==2005; qui replace sample=1 if campus==212910001& rated_year ==2005; qui replace sample=1 if campus==101912020& rated_year ==1994; qui replace sample=1 if campus==101912019& rated_year ==2008; qui replace sample=1 if campus==101912019& rated_year ==2006; qui replace sample=1 if campus==101912019& rated_year ==2004; qui replace sample=1 if campus==121906001& rated_year ==2007; qui replace sample=1 if campus==101912019& rated_year ==2000; qui replace sample=1 if campus==101912009& rated_year ==1996; qui replace sample=1 if campus==43901001& rated_year ==2005; qui replace sample=1 if campus==61911001& rated_year ==2000; qui replace sample=1 if campus==101912019& rated_year ==1996; qui replace sample=1 if campus==161909001& rated_year ==1998; qui replace sample=1 if campus==123914001& rated_year ==2001; qui replace sample=1 if campus==99903001& rated_year ==1994; qui replace sample=1 if campus==101911002& rated_year ==2000; qui replace sample=1 if campus==127903001& rated_year ==2000; qui replace sample=1 if campus==101915002& rated_year ==1995; qui replace sample=1 if campus==19912001& rated_year ==2008; qui replace sample=1 if campus==226903002& rated_year ==2005; qui replace sample=1 if campus==73903001& rated_year ==2000; qui replace sample=1 if campus==11901001& rated_year ==1997; qui replace sample=1 if campus==227901009& rated_year ==2001; qui replace sample=1 if campus==125903001& rated_year ==2003; qui replace sample=1 if campus==161912001& rated_year ==1994; qui replace sample=1 if campus==57905034& rated_year ==2004; qui replace sample=1 if campus==219903001& rated_year ==2004; qui replace sample=1 if campus==43902001& rated_year ==1998; qui replace sample=1 if campus==101912016& rated_year ==1999; qui replace sample=1 if campus==180902001& rated_year ==1995; qui replace sample=1 if campus==101912016& rated_year ==1996; qui replace sample=1 if campus==46902002& rated_year ==1997; qui replace sample=1 if campus==25902001& rated_year ==2000; qui replace sample=1 if campus==98901001& rated_year ==1996; qui replace sample=1 if campus==57905032& rated_year ==2005; qui replace sample=1 if campus==98901001& rated_year ==1997; qui replace sample=1 if campus==236902002& rated_year ==2001; qui replace sample=1 if campus==31909001& rated_year ==1998; qui replace sample=1 if campus==101912014& rated_year ==2008; qui replace sample=1 if campus==1908002& rated_year ==2000; qui replace sample=1 if campus==176901001& rated_year ==1996; qui replace sample=1 if campus==101912014& rated_year ==2001; qui replace sample=1 if campus==3905001& rated_year ==1997; qui replace sample=1 if campus==107902001& rated_year ==2003; qui replace sample=1 if campus==144901001& rated_year ==1999; qui replace sample=1 if campus==14906002& rated_year ==1994; qui replace sample=1 if campus==237902001& rated_year ==2008; qui replace sample=1 if campus==174908001& rated_year ==1999; qui replace sample=1 if campus==175904001& rated_year ==2003; qui replace sample=1 if campus==97903001& rated_year ==2003; qui replace sample=1 if campus==62901001& rated_year ==2001; qui replace sample=1 if campus==31911001& rated_year ==1997; qui replace sample=1 if campus==101912026& rated_year ==1997; qui replace sample=1 if campus==236901002& rated_year ==2001; qui replace sample=1 if campus==205907001& rated_year ==1996; qui replace sample=1 if campus==101912011& rated_year ==2002; qui replace sample=1 if campus==212902001& rated_year ==1998; qui replace sample=1 if campus==57905022& rated_year ==1998; qui replace sample=1 if campus==129903001& rated_year ==2001; qui replace sample=1 if campus==101912011& rated_year ==1995; qui replace sample=1 if campus==121904001& rated_year ==2004; qui replace sample=1 if campus==43903001& rated_year ==2005; qui replace sample=1 if campus==101912010& rated_year ==2000; qui replace sample=1 if campus==43918001& rated_year ==2006; qui replace sample=1 if campus==57905001& rated_year ==1998; qui replace sample=1 if campus==230902002& rated_year ==2003; qui replace sample=1 if campus==198903001& rated_year ==2000; qui replace sample=1 if campus==101912009& rated_year ==1998; qui replace sample=1 if campus==43905001& rated_year ==2004; qui replace sample=1 if campus==101902004& rated_year ==1998; qui replace sample=1 if campus==133901001& rated_year ==2006; qui replace sample=1 if campus==101912008& rated_year ==2007; qui replace sample=1 if campus==61905001& rated_year ==1995; qui replace sample=1 if campus==101912008& rated_year ==2003; qui replace sample=1 if campus==15915005& rated_year ==1994; qui replace sample=1 if campus==230906001& rated_year ==2006; qui replace sample=1 if campus==203901002& rated_year ==2004; qui replace sample=1 if campus==93901001& rated_year ==2002; qui replace sample=1 if campus==62901001& rated_year ==2007; qui replace sample=1 if campus==184909001& rated_year ==2007; qui replace sample=1 if campus==101902005& rated_year ==2008; qui replace sample=1 if campus==72903001& rated_year ==2004; qui replace sample=1 if campus==10902001& rated_year ==2004; qui replace sample=1 if campus==14905001& rated_year ==1998; qui replace sample=1 if campus==123910008& rated_year ==2001; qui replace sample=1 if campus==71907001& rated_year ==1998; qui replace sample=1 if campus==101912007& rated_year ==1995; qui replace sample=1 if campus==13905001& rated_year ==1996; qui replace sample=1 if campus==101912006& rated_year ==2007; qui replace sample=1 if campus==107904001& rated_year ==1998; qui replace sample=1 if campus==93901001& rated_year ==2004; qui replace sample=1 if campus==14908001& rated_year ==1999; qui replace sample=1 if campus==12901001& rated_year ==1995; qui replace sample=1 if campus==91908001& rated_year ==2007; qui replace sample=1 if campus==101912005& rated_year ==2008; qui replace sample=1 if campus==248902001& rated_year ==2002; qui replace sample=1 if campus==101912005& rated_year ==2006; qui replace sample=1 if campus==165901044& rated_year ==2003; qui replace sample=1 if campus==13905001& rated_year ==2006; qui replace sample=1 if campus==142901001& rated_year ==2001; qui replace sample=1 if campus==57907003& rated_year ==1999; qui replace sample=1 if campus==101912004& rated_year ==2008; qui replace sample=1 if campus==101912004& rated_year ==2006; qui replace sample=1 if campus==101912004& rated_year ==2004; qui replace sample=1 if campus==101912004& rated_year ==2000; qui replace sample=1 if campus==101912004& rated_year ==1998; qui replace sample=1 if campus==184908001& rated_year ==2003; qui replace sample=1 if campus==31901003& rated_year ==2001; qui replace sample=1 if campus==112901002& rated_year ==2006; qui replace sample=1 if campus==154901001& rated_year ==2000; qui replace sample=1 if campus==140908001& rated_year ==2002; qui replace sample=1 if campus==102903002& rated_year ==2006; qui replace sample=1 if campus==94902001& rated_year ==2007; qui replace sample=1 if campus==141901001& rated_year ==1998; qui replace sample=1 if campus==234902001& rated_year ==2004; qui replace sample=1 if campus==101917001& rated_year ==2000; qui replace sample=1 if campus==239903001& rated_year ==2008; qui replace sample=1 if campus==91914001& rated_year ==2008; qui replace sample=1 if campus==56901001& rated_year ==2002; qui replace sample=1 if campus==57903001& rated_year ==2007; qui replace sample=1 if campus==98901001& rated_year ==2001; qui replace sample=1 if campus==57912004& rated_year ==2001; qui replace sample=1 if campus==31913001& rated_year ==1998; qui replace sample=1 if campus==176902002& rated_year ==2006; qui replace sample=1 if campus==61908001& rated_year ==2008; qui replace sample=1 if campus==57905002& rated_year ==1995; qui replace sample=1 if campus==21901001& rated_year ==2001; qui replace sample=1 if campus==210903002& rated_year ==1996; qui replace sample=1 if campus==246909004& rated_year ==2000; qui replace sample=1 if campus==57913001& rated_year ==1995; qui replace sample=1 if campus==16902001& rated_year ==2003; qui replace sample=1 if campus==57905022& rated_year ==1994; qui replace sample=1 if campus==57905014& rated_year ==1997; qui replace sample=1 if campus==64901001& rated_year ==1995; qui replace sample=1 if campus==46902001& rated_year ==2005; qui replace sample=1 if campus==66903002& rated_year ==2001; qui replace sample=1 if campus==1907001& rated_year ==2008; qui replace sample=1 if campus==43904001& rated_year ==1998; qui replace sample=1 if campus==91906002& rated_year ==2007; qui replace sample=1 if campus==229904001& rated_year ==1999; qui replace sample=1 if campus==92907001& rated_year ==2001; qui replace sample=1 if campus==114904001& rated_year ==2004; qui replace sample=1 if campus==101911003& rated_year ==2001; qui replace sample=1 if campus==101911003& rated_year ==1995; qui replace sample=1 if campus==234904001& rated_year ==2005; qui replace sample=1 if campus==57914004& rated_year ==2001; qui replace sample=1 if campus==244903001& rated_year ==2004; qui replace sample=1 if campus==101911002& rated_year ==2004; qui replace sample=1 if campus==139911002& rated_year ==1998; qui replace sample=1 if campus==101912020& rated_year ==2001; qui replace sample=1 if campus==108906002& rated_year ==2001; qui replace sample=1 if campus==57909002& rated_year ==2001; qui replace sample=1 if campus==101912006& rated_year ==1998; qui replace sample=1 if campus==101911002& rated_year ==1996; qui replace sample=1 if campus==101915003& rated_year ==2001; qui replace sample=1 if campus==202903001& rated_year ==1997; qui replace sample=1 if campus==57904001& rated_year ==2008; qui replace sample=1 if campus==3905001& rated_year ==2002; qui replace sample=1 if campus==91902001& rated_year ==1999; qui replace sample=1 if campus==71908001& rated_year ==2007; qui replace sample=1 if campus==227901002& rated_year ==2004; qui replace sample=1 if campus==228901001& rated_year ==2002; qui replace sample=1 if campus==123907005& rated_year ==1995; qui replace sample=1 if campus==105904001& rated_year ==1996; qui replace sample=1 if campus==75901001& rated_year ==1999; qui replace sample=1 if campus==30901001& rated_year ==1995; qui replace sample=1 if campus==43911001& rated_year ==2005; qui replace sample=1 if campus==108906001& rated_year ==2004; qui replace sample=1 if campus==7906001& rated_year ==1996; qui replace sample=1 if campus==227901005& rated_year ==2000; qui replace sample=1 if campus==15915002& rated_year ==2004; qui replace sample=1 if campus==14910001& rated_year ==1999; qui replace sample=1 if campus==246911001& rated_year ==1996; qui replace sample=1 if campus==187901001& rated_year ==2000; qui replace sample=1 if campus==101910003& rated_year ==2003; qui replace sample=1 if campus==81905002& rated_year ==2000; qui replace sample=1 if campus==101912005& rated_year ==2005; qui replace sample=1 if campus==81902002& rated_year ==1999; qui replace sample=1 if campus==31905001& rated_year ==2008; qui replace sample=1 if campus==236901002& rated_year ==2002; qui replace sample=1 if campus==101910002& rated_year ==2003; qui replace sample=1 if campus==31914001& rated_year ==2007; qui replace sample=1 if campus==101903001& rated_year ==2007; qui replace sample=1 if campus==57907003& rated_year ==1994; qui replace sample=1 if campus==74917001& rated_year ==2006; qui replace sample=1 if campus==8901001& rated_year ==2004; qui replace sample=1 if campus==30903001& rated_year ==2004; qui replace sample=1 if campus==210903002& rated_year ==2001; qui replace sample=1 if campus==196902001& rated_year ==2007; qui replace sample=1 if campus==239901001& rated_year ==2005; qui replace sample=1 if campus==137901001& rated_year ==2008; qui replace sample=1 if campus==252903001& rated_year ==1998; qui replace sample=1 if campus==234906001& rated_year ==2003; qui replace sample=1 if campus==213901001& rated_year ==1998; qui replace sample=1 if campus==246909004& rated_year ==2008; qui replace sample=1 if campus==2901001& rated_year ==1994; qui replace sample=1 if campus==212906001& rated_year ==2004; qui replace sample=1 if campus==91908001& rated_year ==1996; qui replace sample=1 if campus==64903001& rated_year ==1998; qui replace sample=1 if campus==187907002& rated_year ==2008; qui replace sample=1 if campus==100904001& rated_year ==2001; qui replace sample=1 if campus==46902001& rated_year ==1999; qui replace sample=1 if campus==62903001& rated_year ==1995; qui replace sample=1 if campus==232902001& rated_year ==1998; qui replace sample=1 if campus==101914002& rated_year ==2001; qui replace sample=1 if campus==220920001& rated_year ==2003; qui replace sample=1 if campus==3906001& rated_year ==2005; qui replace sample=1 if campus==250904001& rated_year ==2000; qui replace sample=1 if campus==221901001& rated_year ==2003; qui replace sample=1 if campus==182903001& rated_year ==1996; qui replace sample=1 if campus==242902001& rated_year ==1997; qui replace sample=1 if campus==145902001& rated_year ==2005; qui replace sample=1 if campus==95905001& rated_year ==1999; qui replace sample=1 if campus==71902003& rated_year ==2007; qui replace sample=1 if campus==57912002& rated_year ==2007; qui replace sample=1 if campus==26902001& rated_year ==2008; qui replace sample=1 if campus==3904001& rated_year ==2001; qui replace sample=1 if campus==101909002& rated_year ==2006; qui replace sample=1 if campus==101909002& rated_year ==1995; qui replace sample=1 if campus==15915005& rated_year ==1995; qui replace sample=1 if campus==178913001& rated_year ==1999; qui replace sample=1 if campus==7901001& rated_year ==2002; qui replace sample=1 if campus==239901001& rated_year ==2003; qui replace sample=1 if campus==101907005& rated_year ==1996; qui replace sample=1 if campus==101914005& rated_year ==2001; qui replace sample=1 if campus==152907001& rated_year ==1999; qui replace sample=1 if campus==26903002& rated_year ==1996; qui replace sample=1 if campus==141902001& rated_year ==2001; qui replace sample=1 if campus==57905038& rated_year ==2006; qui replace sample=1 if campus==57905034& rated_year ==1995; qui replace sample=1 if campus==29901001& rated_year ==1996; qui replace sample=1 if campus==205906001& rated_year ==2001; qui replace sample=1 if campus==250906001& rated_year ==1996; qui replace sample=1 if campus==101908001& rated_year ==2003; qui replace sample=1 if campus==101908001& rated_year ==2001; qui replace sample=1 if campus==43914001& rated_year ==2008; qui replace sample=1 if campus==212905001& rated_year ==2004; qui replace sample=1 if campus==79901002& rated_year ==1994; qui replace sample=1 if campus==71902009& rated_year ==2008; qui replace sample=1 if campus==243902001& rated_year ==2008; qui replace sample=1 if campus==172902001& rated_year ==2008; qui replace sample=1 if campus==35902001& rated_year ==2000; qui replace sample=1 if campus==27903001& rated_year ==2001; qui replace sample=1 if campus==101912025& rated_year ==1996; qui replace sample=1 if campus==70915001& rated_year ==2005; qui replace sample=1 if campus==107905001& rated_year ==1998; qui replace sample=1 if campus==15910001& rated_year ==1996; qui replace sample=1 if campus==33902001& rated_year ==2008; qui replace sample=1 if campus==89901001& rated_year ==2000; qui replace sample=1 if campus==13903001& rated_year ==2003; qui replace sample=1 if campus==62904001& rated_year ==2001; qui replace sample=1 if campus==161908002& rated_year ==2001; qui replace sample=1 if campus==200904001& rated_year ==2000; qui replace sample=1 if campus==101912006& rated_year ==2003; qui replace sample=1 if campus==101907007& rated_year ==2008; qui replace sample=1 if campus==3907001& rated_year ==2007; qui replace sample=1 if campus==183901001& rated_year ==1996; qui replace sample=1 if campus==25909001& rated_year ==2001; qui replace sample=1 if campus==163903001& rated_year ==2000; qui replace sample=1 if campus==37904002& rated_year ==1999; qui replace sample=1 if campus==57920002& rated_year ==2004; qui replace sample=1 if campus==101907005& rated_year ==2008; qui replace sample=1 if campus==227901004& rated_year ==2008; qui replace sample=1 if campus==101907005& rated_year ==2005; qui replace sample=1 if campus==101907005& rated_year ==2004; qui replace sample=1 if campus==184902001& rated_year ==1999; qui replace sample=1 if campus==201902001& rated_year ==2005; qui replace sample=1 if campus==182903001& rated_year ==2004; qui replace sample=1 if campus==101907004& rated_year ==2007; qui replace sample=1 if campus==101907004& rated_year ==2006; qui replace sample=1 if campus==57905008& rated_year ==2007; qui replace sample=1 if campus==30903001& rated_year ==2006; qui replace sample=1 if campus==27904001& rated_year ==1999; qui replace sample=1 if campus==147903002& rated_year ==2003; qui replace sample=1 if campus==205902001& rated_year ==2002; qui replace sample=1 if campus==125902001& rated_year ==2001; qui replace sample=1 if campus==101907003& rated_year ==2007; qui replace sample=1 if campus==101907003& rated_year ==2006; qui replace sample=1 if campus==101907003& rated_year ==2005; qui replace sample=1 if campus==249901001& rated_year ==2004; qui replace sample=1 if campus==43911001& rated_year ==1996; qui replace sample=1 if campus==101907003& rated_year ==2001; qui replace sample=1 if campus==101907003& rated_year ==2000; qui replace sample=1 if campus==7905001& rated_year ==2003; qui replace sample=1 if campus==15907003& rated_year ==1995; qui replace sample=1 if campus==101907002& rated_year ==2002; qui replace sample=1 if campus==184908001& rated_year ==1998; qui replace sample=1 if campus==14908001& rated_year ==1994; qui replace sample=1 if campus==101907002& rated_year ==1997; qui replace sample=1 if campus==101907002& rated_year ==1996; qui replace sample=1 if campus==221911001& rated_year ==2001; qui replace sample=1 if campus==101906001& rated_year ==2008; qui replace sample=1 if campus==125902001& rated_year ==1995; qui replace sample=1 if campus==53001001& rated_year ==2007; qui replace sample=1 if campus==123910001& rated_year ==1998; qui replace sample=1 if campus==146907001& rated_year ==2001; qui replace sample=1 if campus==204901001& rated_year ==1998; qui replace sample=1 if campus==108912001& rated_year ==2002; qui replace sample=1 if campus==113905001& rated_year ==2006; qui replace sample=1 if campus==234906001& rated_year ==2008; qui replace sample=1 if campus==31901007& rated_year ==2005; qui replace sample=1 if campus==171901001& rated_year ==2003; qui replace sample=1 if campus==242902001& rated_year ==1998; qui replace sample=1 if campus==227901010& rated_year ==2007; qui replace sample=1 if campus==57909004& rated_year ==1995; qui replace sample=1 if campus==30903001& rated_year ==1998; qui replace sample=1 if campus==126901001& rated_year ==2004; qui replace sample=1 if campus==178914001& rated_year ==1999; qui replace sample=1 if campus==101912004& rated_year ==2007; qui replace sample=1 if campus==20905002& rated_year ==1995; qui replace sample=1 if campus==201910002& rated_year ==2003; qui replace sample=1 if campus==246902001& rated_year ==2002; qui replace sample=1 if campus==31901003& rated_year ==1998; qui replace sample=1 if campus==137901001& rated_year ==2006; qui replace sample=1 if campus==161909001& rated_year ==2003; qui replace sample=1 if campus==57905013& rated_year ==2006; qui replace sample=1 if campus==129910001& rated_year ==2006; qui replace sample=1 if campus==64903001& rated_year ==1997; qui replace sample=1 if campus==83903001& rated_year ==2003; qui replace sample=1 if campus==152907001& rated_year ==2006; qui replace sample=1 if campus==62903001& rated_year ==1998; qui replace sample=1 if campus==205905001& rated_year ==1995; qui replace sample=1 if campus==161918001& rated_year ==1996; qui replace sample=1 if campus==68901003& rated_year ==2007; qui replace sample=1 if campus==92906002& rated_year ==2007; qui replace sample=1 if campus==71902008& rated_year ==2005; qui replace sample=1 if campus==31916001& rated_year ==2006; qui replace sample=1 if campus==178915001& rated_year ==2008; qui replace sample=1 if campus==59901001& rated_year ==1995; qui replace sample=1 if campus==126901001& rated_year ==1998; qui replace sample=1 if campus==108902001& rated_year ==1999; qui replace sample=1 if campus==98904001& rated_year ==2001; qui replace sample=1 if campus==107910001& rated_year ==2007; qui replace sample=1 if campus==170902001& rated_year ==2006; qui replace sample=1 if campus==101903002& rated_year ==2008; qui replace sample=1 if campus==91901001& rated_year ==2005; qui replace sample=1 if campus==161907001& rated_year ==1996; qui replace sample=1 if campus==101903002& rated_year ==1999; qui replace sample=1 if campus==101903002& rated_year ==1998; qui replace sample=1 if campus==101903002& rated_year ==1996; qui replace sample=1 if campus==57905023& rated_year ==2002; qui replace sample=1 if campus==15915007& rated_year ==1998; qui replace sample=1 if campus==175907001& rated_year ==2002; qui replace sample=1 if campus==42901001& rated_year ==1996; qui replace sample=1 if campus==57905007& rated_year ==2001; qui replace sample=1 if campus==110907001& rated_year ==2006; qui replace sample=1 if campus==65901001& rated_year ==2002; qui replace sample=1 if campus==101917002& rated_year ==2002; qui replace sample=1 if campus==137901001& rated_year ==1999; qui replace sample=1 if campus==1903001& rated_year ==2001; qui replace sample=1 if campus==155901002& rated_year ==1995; qui replace sample=1 if campus==101905001& rated_year ==1994; qui replace sample=1 if campus==43918001& rated_year ==2003; qui replace sample=1 if campus==121906001& rated_year ==1996; qui replace sample=1 if campus==164901001& rated_year ==1998; qui replace sample=1 if campus==108906006& rated_year ==1999; qui replace sample=1 if campus==49903001& rated_year ==2003; qui replace sample=1 if campus==154901001& rated_year ==2002; qui replace sample=1 if campus==227907001& rated_year ==2005; qui replace sample=1 if campus==10901001& rated_year ==2001; qui replace sample=1 if campus==61912001& rated_year ==1994; qui replace sample=1 if campus==57903001& rated_year ==2004; qui replace sample=1 if campus==57913001& rated_year ==2003; qui replace sample=1 if campus==14902001& rated_year ==2005; qui replace sample=1 if campus==126907001& rated_year ==2002; qui replace sample=1 if campus==101920006& rated_year ==1995; qui replace sample=1 if campus==175904001& rated_year ==2000; qui replace sample=1 if campus==35901001& rated_year ==2007; qui replace sample=1 if campus==34905002& rated_year ==1995; qui replace sample=1 if campus==212910001& rated_year ==1997; qui replace sample=1 if campus==214903001& rated_year ==2005; qui replace sample=1 if campus==101912026& rated_year ==2000; qui replace sample=1 if campus==163903001& rated_year ==2003; qui replace sample=1 if campus==227901008& rated_year ==2002; qui replace sample=1 if campus==71903001& rated_year ==2006; qui replace sample=1 if campus==101907003& rated_year ==1995; qui replace sample=1 if campus==6902001& rated_year ==1998; qui replace sample=1 if campus==101915002& rated_year ==2003; qui replace sample=1 if campus==188901004& rated_year ==2000; qui replace sample=1 if campus==101902005& rated_year ==1997; qui replace sample=1 if campus==126905001& rated_year ==2007; qui replace sample=1 if campus==43905001& rated_year ==2007; qui replace sample=1 if campus==116906001& rated_year ==2006; qui replace sample=1 if campus==101902004& rated_year ==2004; qui replace sample=1 if campus==239901001& rated_year ==2006; qui replace sample=1 if campus==101911003& rated_year ==2008; qui replace sample=1 if campus==243905001& rated_year ==2007; qui replace sample=1 if campus==92908001& rated_year ==1998; qui replace sample=1 if campus==20907001& rated_year ==1999; qui replace sample=1 if campus==101902003& rated_year ==2006; qui replace sample=1 if campus==243903001& rated_year ==2006; qui replace sample=1 if campus==189902001& rated_year ==1999; qui replace sample=1 if campus==68901045& rated_year ==1994; qui replace sample=1 if campus==101902003& rated_year ==2000; qui replace sample=1 if campus==101902003& rated_year ==1998; qui replace sample=1 if campus==125905001& rated_year ==1999; qui replace sample=1 if campus==212909001& rated_year ==1994; qui replace sample=1 if campus==101902002& rated_year ==2008; qui replace sample=1 if campus==101902002& rated_year ==2004; qui replace sample=1 if campus==219903001& rated_year ==2005; qui replace sample=1 if campus==71908001& rated_year ==1998; qui replace sample=1 if campus==84901001& rated_year ==2002; qui replace sample=1 if campus==101902002& rated_year ==1994; qui replace sample=1 if campus==244903001& rated_year ==2002; qui replace sample=1 if campus==113903002& rated_year ==1999; qui replace sample=1 if campus==250906001& rated_year ==1995; qui replace sample=1 if campus==92908001& rated_year ==2000; qui replace sample=1 if campus==101902001& rated_year ==2002; qui replace sample=1 if campus==101902001& rated_year ==1999; qui replace sample=1 if campus==116903001& rated_year ==1998; qui replace sample=1 if campus==241904001& rated_year ==2001; qui replace sample=1 if campus==73905001& rated_year ==2004; qui replace sample=1 if campus==34903001& rated_year ==1996; qui replace sample=1 if campus==170906001& rated_year ==2005; qui replace sample=1 if campus==229904001& rated_year ==1998; qui replace sample=1 if campus==101903001& rated_year ==1998; qui replace sample=1 if campus==161910001& rated_year ==1997; qui replace sample=1 if campus==13905001& rated_year ==2003; qui replace sample=1 if campus==161918001& rated_year ==1995; qui replace sample=1 if campus==13903001& rated_year ==1996; qui replace sample=1 if campus==229904001& rated_year ==2001; qui replace sample=1 if campus==30901001& rated_year ==2007; qui replace sample=1 if campus==108904001& rated_year ==2006; qui replace sample=1 if campus==227901008& rated_year ==2003; qui replace sample=1 if campus==57905033& rated_year ==2003; qui replace sample=1 if campus==117904001& rated_year ==1995; qui replace sample=1 if campus==161922001& rated_year ==2007; qui replace sample=1 if campus==129902001& rated_year ==2005; qui replace sample=1 if campus==181906001& rated_year ==2004; qui replace sample=1 if campus==73905001& rated_year ==2000; qui replace sample=1 if campus==128902001& rated_year ==1996; qui replace sample=1 if campus==200902001& rated_year ==1996; qui replace sample=1 if campus==91901001& rated_year ==2006; qui replace sample=1 if campus==70907001& rated_year ==2008; qui replace sample=1 if campus==161918001& rated_year ==2006; qui replace sample=1 if campus==101910003& rated_year ==2005; qui replace sample=1 if campus==15904002& rated_year ==2007; qui replace sample=1 if campus==84909001& rated_year ==1998; qui replace sample=1 if campus==1904001& rated_year ==1998; qui replace sample=1 if campus==210903002& rated_year ==2007; qui replace sample=1 if campus==84909001& rated_year ==2008; qui replace sample=1 if campus==220905011& rated_year ==2003; qui replace sample=1 if campus==91917001& rated_year ==1996; qui replace sample=1 if campus==84904001& rated_year ==2008; qui replace sample=1 if campus==105906001& rated_year ==2006; qui replace sample=1 if campus==243902001& rated_year ==2005; qui replace sample=1 if campus==178908001& rated_year ==1994; qui replace sample=1 if campus==180902001& rated_year ==1996; qui replace sample=1 if campus==178904002& rated_year ==2002; qui replace sample=1 if campus==249906001& rated_year ==2001; qui replace sample=1 if campus==79907006& rated_year ==2001; qui replace sample=1 if campus==31913001& rated_year ==2001; qui replace sample=1 if campus==165901044& rated_year ==1996; qui replace sample=1 if campus==101910003& rated_year ==1998; qui replace sample=1 if campus==96904001& rated_year ==2002; qui replace sample=1 if campus==220905004& rated_year ==1995; qui replace sample=1 if campus==108906006& rated_year ==2003; qui replace sample=1 if campus==91917001& rated_year ==1997; qui replace sample=1 if campus==18907001& rated_year ==2007; qui replace sample=1 if campus==251901001& rated_year ==1996; qui replace sample=1 if campus==229903001& rated_year ==2004; qui replace sample=1 if campus==19908001& rated_year ==2007; qui replace sample=1 if campus==57905015& rated_year ==1995; qui replace sample=1 if campus==214903001& rated_year ==2007; qui replace sample=1 if campus==220915001& rated_year ==2004; qui replace sample=1 if campus==98901001& rated_year ==2008; qui replace sample=1 if campus==212903001& rated_year ==1999; qui replace sample=1 if campus==57904001& rated_year ==2000; qui replace sample=1 if campus==61908001& rated_year ==2000; qui replace sample=1 if campus==212905003& rated_year ==2001; qui replace sample=1 if campus==108907001& rated_year ==1996; qui replace sample=1 if campus==145901002& rated_year ==1997; qui replace sample=1 if campus==57905025& rated_year ==2001; qui replace sample=1 if campus==14908001& rated_year ==1995; qui replace sample=1 if campus==15915006& rated_year ==2002; qui replace sample=1 if campus==183902001& rated_year ==1994; qui replace sample=1 if campus==205905001& rated_year ==1996; qui replace sample=1 if campus==143901001& rated_year ==2002; qui replace sample=1 if campus==226905001& rated_year ==2004; qui replace sample=1 if campus==125905001& rated_year ==2005; qui replace sample=1 if campus==70903002& rated_year ==1994; qui replace sample=1 if campus==13905001& rated_year ==2007; qui replace sample=1 if campus==163904001& rated_year ==2004; qui replace sample=1 if campus==221912001& rated_year ==2005; qui replace sample=1 if campus==170902001& rated_year ==2000; qui replace sample=1 if campus==101913001& rated_year ==2003; qui replace sample=1 if campus==57914002& rated_year ==2008; qui replace sample=1 if campus==181907001& rated_year ==1995; qui replace sample=1 if campus==218901001& rated_year ==2001; qui replace sample=1 if campus==227901008& rated_year ==2004; qui replace sample=1 if campus==250904001& rated_year ==2003; qui replace sample=1 if campus==92901001& rated_year ==2004; qui replace sample=1 if campus==194904002& rated_year ==1995; qui replace sample=1 if campus==161910001& rated_year ==1994; qui replace sample=1 if campus==201902001& rated_year ==2006; qui replace sample=1 if campus==15908001& rated_year ==1997; qui replace sample=1 if campus==204901001& rated_year ==2002; qui replace sample=1 if campus==239903001& rated_year ==2002; qui replace sample=1 if campus==14906002& rated_year ==2001; qui replace sample=1 if campus==21902001& rated_year ==2005; qui replace sample=1 if campus==101907005& rated_year ==1999; qui replace sample=1 if campus==101920001& rated_year ==1994; qui replace sample=1 if campus==153903001& rated_year ==2005; qui replace sample=1 if campus==144902001& rated_year ==1996; qui replace sample=1 if campus==225902001& rated_year ==2003; qui replace sample=1 if campus==62904001& rated_year ==2003; qui replace sample=1 if campus==236902002& rated_year ==2006; qui replace sample=1 if campus==30906001& rated_year ==1995; qui replace sample=1 if campus==246909001& rated_year ==2008; qui replace sample=1 if campus==101924001& rated_year ==2003; qui replace sample=1 if campus==114904001& rated_year ==2008; qui replace sample=1 if campus==15905002& rated_year ==2000; qui replace sample=1 if campus==11902001& rated_year ==1995; qui replace sample=1 if campus==70905002& rated_year ==2005; qui replace sample=1 if campus==19909001& rated_year ==2003; qui replace sample=1 if campus==121904001& rated_year ==1996; qui replace sample=1 if campus==229905001& rated_year ==1994; qui replace sample=1 if campus==212909001& rated_year ==2004; qui replace sample=1 if campus==2901001& rated_year ==2003; qui replace sample=1 if campus==170908001& rated_year ==2007; qui replace sample=1 if campus==57905017& rated_year ==2008; qui replace sample=1 if campus==20908001& rated_year ==2006; qui replace sample=1 if campus==101907002& rated_year ==1994; qui replace sample=1 if campus==178904003& rated_year ==2001; qui replace sample=1 if campus==234903001& rated_year ==2005; qui replace sample=1 if campus==246908001& rated_year ==2001; qui replace sample=1 if campus==108902001& rated_year ==2001; qui replace sample=1 if campus==31912001& rated_year ==2008; qui replace sample=1 if campus==37907002& rated_year ==1995; qui replace sample=1 if campus==125903001& rated_year ==2002; qui replace sample=1 if campus==145911002& rated_year ==1995; qui replace sample=1 if campus==15907007& rated_year ==2006; qui replace sample=1 if campus==19909001& rated_year ==1999; qui replace sample=1 if campus==166904001& rated_year ==1999; qui replace sample=1 if campus==252903001& rated_year ==1999; qui replace sample=1 if campus==101913002& rated_year ==2003; qui replace sample=1 if campus==19903001& rated_year ==2000; qui replace sample=1 if campus==64903001& rated_year ==2001; qui replace sample=1 if campus==43914001& rated_year ==1995; qui replace sample=1 if campus==178904001& rated_year ==2008; qui replace sample=1 if campus==141902001& rated_year ==2000; qui replace sample=1 if campus==101924001& rated_year ==2002; qui replace sample=1 if campus==227901009& rated_year ==1998; qui replace sample=1 if campus==243901001& rated_year ==2007; qui replace sample=1 if campus==57914004& rated_year ==2008; qui replace sample=1 if campus==181901001& rated_year ==2003; qui replace sample=1 if campus==212909001& rated_year ==2000; qui replace sample=1 if campus==94902001& rated_year ==1994; qui replace sample=1 if campus==20904001& rated_year ==2002; qui replace sample=1 if campus==123908001& rated_year ==2003; qui replace sample=1 if campus==101910003& rated_year ==1996; qui replace sample=1 if campus==95905001& rated_year ==2005; qui replace sample=1 if campus==31916003& rated_year ==1999; qui replace sample=1 if campus==123907003& rated_year ==1998; qui replace sample=1 if campus==57905008& rated_year ==2001; qui replace sample=1 if campus==82903001& rated_year ==2005; qui replace sample=1 if campus==117903001& rated_year ==2003; qui replace sample=1 if campus==205907001& rated_year ==2005; qui replace sample=1 if campus==15907182& rated_year ==2007; qui replace sample=1 if campus==251901001& rated_year ==2003; qui replace sample=1 if campus==108906002& rated_year ==2000; qui replace sample=1 if campus==13901001& rated_year ==2007; qui replace sample=1 if campus==125902001& rated_year ==1994; qui replace sample=1 if campus==161919001& rated_year ==2003; qui replace sample=1 if campus==15907003& rated_year ==2008; qui replace sample=1 if campus==205902001& rated_year ==2007; qui replace sample=1 if campus==40902001& rated_year ==1998; qui replace sample=1 if campus==36903001& rated_year ==2008; qui replace sample=1 if campus==47902001& rated_year ==2006; qui replace sample=1 if campus==145901002& rated_year ==1995; qui replace sample=1 if campus==94902001& rated_year ==2005; qui replace sample=1 if campus==242902001& rated_year ==1995; qui replace sample=1 if campus==84910003& rated_year ==2006; qui replace sample=1 if campus==221901002& rated_year ==2001; qui replace sample=1 if campus==31911001& rated_year ==2003; qui replace sample=1 if campus==57905024& rated_year ==2005; qui replace sample=1 if campus==10901001& rated_year ==1994; qui replace sample=1 if campus==71905001& rated_year ==2002; qui replace sample=1 if campus==125903001& rated_year ==2006; qui replace sample=1 if campus==68901048& rated_year ==1994; qui replace sample=1 if campus==227913001& rated_year ==1997; qui replace sample=1 if campus==229901001& rated_year ==2002; qui replace sample=1 if campus==15908001& rated_year ==2004; qui replace sample=1 if campus==113903002& rated_year ==2005; qui replace sample=1 if campus==100908001& rated_year ==2001; qui replace sample=1 if campus==227901007& rated_year ==1999; qui replace sample=1 if campus==221901001& rated_year ==1995; qui replace sample=1 if campus==220905010& rated_year ==2000; qui replace sample=1 if campus==79901002& rated_year ==1997; qui replace sample=1 if campus==134901001& rated_year ==1997; qui replace sample=1 if campus==101912006& rated_year ==2008; qui replace sample=1 if campus==100907001& rated_year ==2008; qui replace sample=1 if campus==184908001& rated_year ==2000; qui replace sample=1 if campus==57909002& rated_year ==2006; qui replace sample=1 if campus==100907001& rated_year ==1999; qui replace sample=1 if campus==3906001& rated_year ==1994; qui replace sample=1 if campus==250906001& rated_year ==2005; qui replace sample=1 if campus==174906001& rated_year ==1999; qui replace sample=1 if campus==234906001& rated_year ==2004; qui replace sample=1 if campus==199902002& rated_year ==2003; qui replace sample=1 if campus==91908001& rated_year ==2005; qui replace sample=1 if campus==117904001& rated_year ==2008; qui replace sample=1 if campus==126908001& rated_year ==2003; qui replace sample=1 if campus==91918001& rated_year ==1995; qui replace sample=1 if campus==100905001& rated_year ==2007; qui replace sample=1 if campus==100905001& rated_year ==2005; qui replace sample=1 if campus==123907001& rated_year ==1994; qui replace sample=1 if campus==100905001& rated_year ==1998; qui replace sample=1 if campus==14906001& rated_year ==1997; qui replace sample=1 if campus==92907001& rated_year ==2003; qui replace sample=1 if campus==61906001& rated_year ==2005; qui replace sample=1 if campus==152907001& rated_year ==2002; qui replace sample=1 if campus==142901001& rated_year ==1994; qui replace sample=1 if campus==243903001& rated_year ==1995; qui replace sample=1 if campus==116916001& rated_year ==1997; qui replace sample=1 if campus==7905001& rated_year ==2002; qui replace sample=1 if campus==57905025& rated_year ==2004; qui replace sample=1 if campus==184907001& rated_year ==2002; qui replace sample=1 if campus==20907001& rated_year ==2007; qui replace sample=1 if campus==100904001& rated_year ==1998; qui replace sample=1 if campus==31901007& rated_year ==2000; qui replace sample=1 if campus==100904001& rated_year ==1995; qui replace sample=1 if campus==15913001& rated_year ==1994; qui replace sample=1 if campus==100903002& rated_year ==2002; qui replace sample=1 if campus==172905002& rated_year ==1999; qui replace sample=1 if campus==100903002& rated_year ==1997; qui replace sample=1 if campus==100903002& rated_year ==1996; qui replace sample=1 if campus==72902001& rated_year ==1995; qui replace sample=1 if campus==99903001& rated_year ==2007; qui replace sample=1 if campus==99903001& rated_year ==2004; qui replace sample=1 if campus==99903001& rated_year ==2003; qui replace sample=1 if campus==99903001& rated_year ==2001; qui replace sample=1 if campus==211902001& rated_year ==1999; qui replace sample=1 if campus==218901001& rated_year ==1999; qui replace sample=1 if campus==212905003& rated_year ==2000; qui replace sample=1 if campus==101907004& rated_year ==2000; qui replace sample=1 if campus==107905001& rated_year ==2005; qui replace sample=1 if campus==95901001& rated_year ==2008; qui replace sample=1 if campus==178909001& rated_year ==2003; qui replace sample=1 if campus==226905001& rated_year ==2003; qui replace sample=1 if campus==161920001& rated_year ==2000; qui replace sample=1 if campus==72903001& rated_year ==1996; qui replace sample=1 if campus==220902001& rated_year ==1998; qui replace sample=1 if campus==1909001& rated_year ==1997; qui replace sample=1 if campus==218901001& rated_year ==1997; qui replace sample=1 if campus==92908001& rated_year ==2006; qui replace sample=1 if campus==98904001& rated_year ==2000; qui replace sample=1 if campus==98904001& rated_year ==1999; qui replace sample=1 if campus==220905005& rated_year ==1998; qui replace sample=1 if campus==98904001& rated_year ==1997; qui replace sample=1 if campus==201908001& rated_year ==1998; qui replace sample=1 if campus==57905097& rated_year ==1994; qui replace sample=1 if campus==71902003& rated_year ==2004; qui replace sample=1 if campus==158901001& rated_year ==1994; qui replace sample=1 if campus==98901001& rated_year ==1995; qui replace sample=1 if campus==97903001& rated_year ==2007; qui replace sample=1 if campus==97903001& rated_year ==2004; qui replace sample=1 if campus==107901001& rated_year ==1997; qui replace sample=1 if campus==101912026& rated_year ==1999; qui replace sample=1 if campus==246913001& rated_year ==1997; qui replace sample=1 if campus==246913001& rated_year ==1996; qui replace sample=1 if campus==116903001& rated_year ==1999; qui replace sample=1 if campus==101912025& rated_year ==1995; qui replace sample=1 if campus==97903001& rated_year ==1995; qui replace sample=1 if campus==97902001& rated_year ==2006; qui replace sample=1 if campus==57914004& rated_year ==2003; qui replace sample=1 if campus==97902001& rated_year ==2002; qui replace sample=1 if campus==227901009& rated_year ==2006; qui replace sample=1 if campus==211902001& rated_year ==1997; qui replace sample=1 if campus==15911001& rated_year ==1996; qui replace sample=1 if campus==9901001& rated_year ==1996; qui replace sample=1 if campus==227901008& rated_year ==2000; qui replace sample=1 if campus==172905002& rated_year ==1998; qui replace sample=1 if campus==5902001& rated_year ==2007; qui replace sample=1 if campus==212906001& rated_year ==1996; qui replace sample=1 if campus==163903001& rated_year ==2005; qui replace sample=1 if campus==71902011& rated_year ==1997; qui replace sample=1 if campus==69902001& rated_year ==2007; qui replace sample=1 if campus==140908001& rated_year ==1996; qui replace sample=1 if campus==183901001& rated_year ==2007; qui replace sample=1 if campus==100908001& rated_year ==1995; qui replace sample=1 if campus==96904001& rated_year ==1995; qui replace sample=1 if campus==71902001& rated_year ==1998; qui replace sample=1 if campus==116908001& rated_year ==1995; qui replace sample=1 if campus==105905001& rated_year ==1996; qui replace sample=1 if campus==57905009& rated_year ==2003; qui replace sample=1 if campus==108903001& rated_year ==1995; qui replace sample=1 if campus==212904002& rated_year ==1997; qui replace sample=1 if campus==221901001& rated_year ==1997; qui replace sample=1 if campus==38901001& rated_year ==1999; qui replace sample=1 if campus==201902001& rated_year ==2003; qui replace sample=1 if campus==139905001& rated_year ==2005; qui replace sample=1 if campus==126905001& rated_year ==2004; qui replace sample=1 if campus==15907182& rated_year ==2005; qui replace sample=1 if campus==95905001& rated_year ==2001; qui replace sample=1 if campus==123907002& rated_year ==1996; qui replace sample=1 if campus==61902002& rated_year ==1998; qui replace sample=1 if campus==31914001& rated_year ==2006; qui replace sample=1 if campus==43904001& rated_year ==2000; qui replace sample=1 if campus==254901001& rated_year ==2005; qui replace sample=1 if campus==62903001& rated_year ==2006; qui replace sample=1 if campus==61911001& rated_year ==2005; qui replace sample=1 if campus==178904002& rated_year ==1997; qui replace sample=1 if campus==81902002& rated_year ==2004; qui replace sample=1 if campus==209901001& rated_year ==2002; qui replace sample=1 if campus==95903001& rated_year ==2008; qui replace sample=1 if campus==95903001& rated_year ==2007; qui replace sample=1 if campus==200904001& rated_year ==2002; qui replace sample=1 if campus==95903001& rated_year ==2004; qui replace sample=1 if campus==220902002& rated_year ==1997; qui replace sample=1 if campus==95903001& rated_year ==2002; qui replace sample=1 if campus==92906002& rated_year ==1997; qui replace sample=1 if campus==163908001& rated_year ==2003; qui replace sample=1 if campus==91917001& rated_year ==2007; qui replace sample=1 if campus==15904002& rated_year ==1996; qui replace sample=1 if campus==57914002& rated_year ==2007; qui replace sample=1 if campus==3904001& rated_year ==2000; qui replace sample=1 if campus==133904001& rated_year ==2001; qui replace sample=1 if campus==39903001& rated_year ==1999; qui replace sample=1 if campus==64903001& rated_year ==2003; qui replace sample=1 if campus==108909001& rated_year ==2004; qui replace sample=1 if campus==57914002& rated_year ==2003; qui replace sample=1 if campus==130902001& rated_year ==2006; qui replace sample=1 if campus==241903001& rated_year ==2006; qui replace sample=1 if campus==187901001& rated_year ==1997; qui replace sample=1 if campus==34903001& rated_year ==2004; qui replace sample=1 if campus==219903001& rated_year ==2003; qui replace sample=1 if campus==220901004& rated_year ==2001; qui replace sample=1 if campus==71902001& rated_year ==2001; qui replace sample=1 if campus==43910003& rated_year ==1998; qui replace sample=1 if campus==94904001& rated_year ==2002; qui replace sample=1 if campus==94904001& rated_year ==2000; qui replace sample=1 if campus==101912011& rated_year ==2006; qui replace sample=1 if campus==91906002& rated_year ==1994; qui replace sample=1 if campus==31909001& rated_year ==2005; qui replace sample=1 if campus==94904001& rated_year ==1994; qui replace sample=1 if campus==223901001& rated_year ==1996; qui replace sample=1 if campus==25901001& rated_year ==1996; qui replace sample=1 if campus==71902008& rated_year ==2008; qui replace sample=1 if campus==3907001& rated_year ==2003; qui replace sample=1 if campus==146904001& rated_year ==2004; qui replace sample=1 if campus==108909001& rated_year ==2001; qui replace sample=1 if campus==174904002& rated_year ==2000; qui replace sample=1 if campus==188901001& rated_year ==1996; qui replace sample=1 if campus==178902001& rated_year ==2004; qui replace sample=1 if campus==116901001& rated_year ==1998; qui replace sample=1 if campus==130901001& rated_year ==1997; qui replace sample=1 if campus==178904002& rated_year ==2000; qui replace sample=1 if campus==234903001& rated_year ==2007; qui replace sample=1 if campus==249901001& rated_year ==1994; qui replace sample=1 if campus==57909005& rated_year ==2004; qui replace sample=1 if campus==92907001& rated_year ==2008; qui replace sample=1 if campus==227901005& rated_year ==2002; qui replace sample=1 if campus==140908001& rated_year ==1994; qui replace sample=1 if campus==94902001& rated_year ==2001; qui replace sample=1 if campus==94902001& rated_year ==2000; qui replace sample=1 if campus==94902001& rated_year ==1998; qui replace sample=1 if campus==94902001& rated_year ==1997; qui replace sample=1 if campus==212910001& rated_year ==2004; qui replace sample=1 if campus==71901001& rated_year ==1996; qui replace sample=1 if campus==37901001& rated_year ==1994; qui replace sample=1 if campus==186902001& rated_year ==2005; qui replace sample=1 if campus==28902001& rated_year ==1995; qui replace sample=1 if campus==101910002& rated_year ==2005; qui replace sample=1 if campus==248901001& rated_year ==2008; qui replace sample=1 if campus==234904001& rated_year ==2003; qui replace sample=1 if campus==31901004& rated_year ==1996; qui replace sample=1 if campus==158906002& rated_year ==2007; qui replace sample=1 if campus==129906002& rated_year ==1994; qui replace sample=1 if campus==34907001& rated_year ==1999; qui replace sample=1 if campus==57904001& rated_year ==1997; qui replace sample=1 if campus==94901001& rated_year ==2006; qui replace sample=1 if campus==71904001& rated_year ==1996; qui replace sample=1 if campus==241902001& rated_year ==2005; qui replace sample=1 if campus==84904001& rated_year ==1997; qui replace sample=1 if campus==250906001& rated_year ==2000; qui replace sample=1 if campus==94901001& rated_year ==1998; qui replace sample=1 if campus==1909001& rated_year ==1999; qui replace sample=1 if campus==57905023& rated_year ==2005; qui replace sample=1 if campus==57910003& rated_year ==1999; qui replace sample=1 if campus==101917001& rated_year ==2007; qui replace sample=1 if campus==55901001& rated_year ==1997; qui replace sample=1 if campus==19905001& rated_year ==1995; qui replace sample=1 if campus==230903001& rated_year ==1994; qui replace sample=1 if campus==57914004& rated_year ==2002; qui replace sample=1 if campus==250907001& rated_year ==2006; qui replace sample=1 if campus==245902001& rated_year ==2008; qui replace sample=1 if campus==57913001& rated_year ==2002; qui replace sample=1 if campus==101907005& rated_year ==2001; qui replace sample=1 if campus==240901001& rated_year ==2000; qui replace sample=1 if campus==187901001& rated_year ==2002; qui replace sample=1 if campus==71902006& rated_year ==2005; qui replace sample=1 if campus==43904001& rated_year ==1999; qui replace sample=1 if campus==93904002& rated_year ==1994; qui replace sample=1 if campus==44902001& rated_year ==2005; qui replace sample=1 if campus==101903001& rated_year ==2002; qui replace sample=1 if campus==158906002& rated_year ==2005; qui replace sample=1 if campus==237904002& rated_year ==2002; qui replace sample=1 if campus==57905026& rated_year ==2005; qui replace sample=1 if campus==15907005& rated_year ==2006; qui replace sample=1 if campus==15915004& rated_year ==2005; qui replace sample=1 if campus==84906001& rated_year ==2006; qui replace sample=1 if campus==101902002& rated_year ==2007; qui replace sample=1 if campus==49901001& rated_year ==2002; qui replace sample=1 if campus==16902001& rated_year ==1999; qui replace sample=1 if campus==101907003& rated_year ==1994; qui replace sample=1 if campus==129901001& rated_year ==2000; qui replace sample=1 if campus==188901002& rated_year ==2002; qui replace sample=1 if campus==229901001& rated_year ==2001; qui replace sample=1 if campus==178912001& rated_year ==1996; qui replace sample=1 if campus==102902001& rated_year ==1998; qui replace sample=1 if campus==101916001& rated_year ==1995; qui replace sample=1 if campus==146905001& rated_year ==2000; qui replace sample=1 if campus==35902001& rated_year ==1995; qui replace sample=1 if campus==69902001& rated_year ==2005; qui replace sample=1 if campus==165901042& rated_year ==1998; qui replace sample=1 if campus==152906001& rated_year ==1999; qui replace sample=1 if campus==110907001& rated_year ==1996; qui replace sample=1 if campus==164901001& rated_year ==2006; qui replace sample=1 if campus==92906002& rated_year ==2002; qui replace sample=1 if campus==113905001& rated_year ==2007; qui replace sample=1 if campus==243905001& rated_year ==1996; qui replace sample=1 if campus==73903001& rated_year ==1996; qui replace sample=1 if campus==198903001& rated_year ==1997; qui replace sample=1 if campus==184907001& rated_year ==2006; qui replace sample=1 if campus==220905011& rated_year ==1994; qui replace sample=1 if campus==156902001& rated_year ==2003; qui replace sample=1 if campus==109911001& rated_year ==2007; qui replace sample=1 if campus==212903001& rated_year ==1994; qui replace sample=1 if campus==198905002& rated_year ==2007; qui replace sample=1 if campus==123907003& rated_year ==2000; qui replace sample=1 if campus==185903001& rated_year ==1996; qui replace sample=1 if campus==114901001& rated_year ==2004; qui replace sample=1 if campus==108907001& rated_year ==2006; qui replace sample=1 if campus==101919001& rated_year ==1996; qui replace sample=1 if campus==161920001& rated_year ==2001; qui replace sample=1 if campus==74903001& rated_year ==2007; qui replace sample=1 if campus==57905007& rated_year ==2007; qui replace sample=1 if campus==92903001& rated_year ==2006; qui replace sample=1 if campus==92903001& rated_year ==2003; qui replace sample=1 if campus==92903001& rated_year ==2002; qui replace sample=1 if campus==182903001& rated_year ==2008; qui replace sample=1 if campus==7905001& rated_year ==2001; qui replace sample=1 if campus==82902001& rated_year ==2003; qui replace sample=1 if campus==91905001& rated_year ==2008; qui replace sample=1 if campus==64903001& rated_year ==2004; qui replace sample=1 if campus==246907001& rated_year ==2004; qui replace sample=1 if campus==15906001& rated_year ==2005; qui replace sample=1 if campus==142901001& rated_year ==1996; qui replace sample=1 if campus==220907001& rated_year ==2008; qui replace sample=1 if campus==73903001& rated_year ==1997; qui replace sample=1 if campus==92902002& rated_year ==2005; qui replace sample=1 if campus==92902002& rated_year ==2004; qui replace sample=1 if campus==15907002& rated_year ==2006; qui replace sample=1 if campus==92901001& rated_year ==2005; qui replace sample=1 if campus==53001001& rated_year ==2004; qui replace sample=1 if campus==21902001& rated_year ==1995; qui replace sample=1 if campus==66902001& rated_year ==2006; qui replace sample=1 if campus==189902001& rated_year ==2002; qui replace sample=1 if campus==108904003& rated_year ==2000; qui replace sample=1 if campus==75901001& rated_year ==2007; qui replace sample=1 if campus==220905015& rated_year ==1997; qui replace sample=1 if campus==57912002& rated_year ==2004; qui replace sample=1 if campus==178904005& rated_year ==2004; qui replace sample=1 if campus==161922001& rated_year ==1995; qui replace sample=1 if campus==240903002& rated_year ==2007; qui replace sample=1 if campus==191901001& rated_year ==1997; qui replace sample=1 if campus==101912016& rated_year ==2006; qui replace sample=1 if campus==235901001& rated_year ==2004; qui replace sample=1 if campus==20906002& rated_year ==1995; qui replace sample=1 if campus==136901001& rated_year ==2007; qui replace sample=1 if campus==14908001& rated_year ==2004; qui replace sample=1 if campus==19908001& rated_year ==2008; qui replace sample=1 if campus==57911001& rated_year ==1996; qui replace sample=1 if campus==91917001& rated_year ==2003; qui replace sample=1 if campus==133901001& rated_year ==2005; qui replace sample=1 if campus==91917001& rated_year ==1998; qui replace sample=1 if campus==220915001& rated_year ==2007; qui replace sample=1 if campus==43910005& rated_year ==2001; qui replace sample=1 if campus==91914001& rated_year ==2001; qui replace sample=1 if campus==43910003& rated_year ==1999; qui replace sample=1 if campus==91913001& rated_year ==2008; qui replace sample=1 if campus==15907182& rated_year ==1997; qui replace sample=1 if campus==33904001& rated_year ==1997; qui replace sample=1 if campus==101912012& rated_year ==1997; qui replace sample=1 if campus==248902001& rated_year ==1999; qui replace sample=1 if campus==91913001& rated_year ==1996; qui replace sample=1 if campus==91910001& rated_year ==2006; qui replace sample=1 if campus==91910001& rated_year ==2004; qui replace sample=1 if campus==161906002& rated_year ==1995; qui replace sample=1 if campus==233901002& rated_year ==2000; qui replace sample=1 if campus==91910001& rated_year ==1997; qui replace sample=1 if campus==178904004& rated_year ==2001; qui replace sample=1 if campus==2901001& rated_year ==2006; qui replace sample=1 if campus==126911001& rated_year ==2006; qui replace sample=1 if campus==91908001& rated_year ==2004; qui replace sample=1 if campus==91908001& rated_year ==2001; qui replace sample=1 if campus==156902001& rated_year ==1996; qui replace sample=1 if campus==15910002& rated_year ==1996; qui replace sample=1 if campus==116902001& rated_year ==2007; qui replace sample=1 if campus==95905001& rated_year ==2003; qui replace sample=1 if campus==212906001& rated_year ==2003; qui replace sample=1 if campus==15911001& rated_year ==2007; qui replace sample=1 if campus==92906002& rated_year ==1994; qui replace sample=1 if campus==43901001& rated_year ==2006; qui replace sample=1 if campus==101903001& rated_year ==2000; qui replace sample=1 if campus==1907001& rated_year ==2002; qui replace sample=1 if campus==245902001& rated_year ==2000; qui replace sample=1 if campus==107906001& rated_year ==2000; qui replace sample=1 if campus==170902003& rated_year ==2008; qui replace sample=1 if campus==210901001& rated_year ==2001; qui replace sample=1 if campus==65901001& rated_year ==2003; qui replace sample=1 if campus==246908001& rated_year ==1998; qui replace sample=1 if campus==3907001& rated_year ==2002; qui replace sample=1 if campus==161909001& rated_year ==2000; qui replace sample=1 if campus==15915006& rated_year ==2001; qui replace sample=1 if campus==18907001& rated_year ==1999; qui replace sample=1 if campus==234906001& rated_year ==2001; qui replace sample=1 if campus==174906001& rated_year ==1994; qui replace sample=1 if campus==243905001& rated_year ==2002; qui replace sample=1 if campus==174902001& rated_year ==1999; qui replace sample=1 if campus==249905001& rated_year ==2001; qui replace sample=1 if campus==196902001& rated_year ==1995; qui replace sample=1 if campus==18901001& rated_year ==2003; qui replace sample=1 if campus==158906002& rated_year ==2002; qui replace sample=1 if campus==108908001& rated_year ==1998; qui replace sample=1 if campus==101912001& rated_year ==2003; qui replace sample=1 if campus==181905001& rated_year ==2002; qui replace sample=1 if campus==15915006& rated_year ==1996; qui replace sample=1 if campus==101912017& rated_year ==1996; qui replace sample=1 if campus==45905002& rated_year ==2000; qui replace sample=1 if campus==205903001& rated_year ==2004; qui replace sample=1 if campus==95905001& rated_year ==2002; qui replace sample=1 if campus==227904001& rated_year ==2001; qui replace sample=1 if campus==81904001& rated_year ==2004; qui replace sample=1 if campus==101917004& rated_year ==2004; qui replace sample=1 if campus==53001001& rated_year ==2000; qui replace sample=1 if campus==221901001& rated_year ==1998; qui replace sample=1 if campus==91906002& rated_year ==1995; qui replace sample=1 if campus==185901001& rated_year ==2007; qui replace sample=1 if campus==57905033& rated_year ==2002; qui replace sample=1 if campus==56901001& rated_year ==2005; qui replace sample=1 if campus==91905001& rated_year ==2004; qui replace sample=1 if campus==201908001& rated_year ==2001; qui replace sample=1 if campus==36902001& rated_year ==1998; qui replace sample=1 if campus==46902002& rated_year ==2006; qui replace sample=1 if campus==18901001& rated_year ==2000; qui replace sample=1 if campus==91902001& rated_year ==1994; qui replace sample=1 if campus==174902001& rated_year ==2004; qui replace sample=1 if campus==79907002& rated_year ==2000; qui replace sample=1 if campus==108906002& rated_year ==1995; qui replace sample=1 if campus==101917003& rated_year ==1999; qui replace sample=1 if campus==170903002& rated_year ==2000; qui replace sample=1 if campus==117901001& rated_year ==2001; qui replace sample=1 if campus==15907004& rated_year ==1995; qui replace sample=1 if campus==61908001& rated_year ==2006; qui replace sample=1 if campus==176901001& rated_year ==2005; qui replace sample=1 if campus==178909001& rated_year ==1997; qui replace sample=1 if campus==91903001& rated_year ==2006; qui replace sample=1 if campus==9901001& rated_year ==2004; qui replace sample=1 if campus==127904001& rated_year ==2007; qui replace sample=1 if campus==40902001& rated_year ==1994; qui replace sample=1 if campus==91903001& rated_year ==1994; qui replace sample=1 if campus==91902001& rated_year ==2006; qui replace sample=1 if campus==113905001& rated_year ==2002; qui replace sample=1 if campus==252901001& rated_year ==2005; qui replace sample=1 if campus==166904001& rated_year ==2007; qui replace sample=1 if campus==178904004& rated_year ==1997; qui replace sample=1 if campus==81902002& rated_year ==2000; qui replace sample=1 if campus==57905013& rated_year ==2003; qui replace sample=1 if campus==91901001& rated_year ==2007; qui replace sample=1 if campus==101910002& rated_year ==2007; qui replace sample=1 if campus==91901001& rated_year ==2004; qui replace sample=1 if campus==91901001& rated_year ==2003; qui replace sample=1 if campus==91901001& rated_year ==2001; qui replace sample=1 if campus==101919001& rated_year ==1994; qui replace sample=1 if campus==84908001& rated_year ==2007; qui replace sample=1 if campus==120901001& rated_year ==2002; qui replace sample=1 if campus==31912001& rated_year ==2002; qui replace sample=1 if campus==46902002& rated_year ==1998; qui replace sample=1 if campus==101912016& rated_year ==2003; qui replace sample=1 if campus==43910003& rated_year ==2004; qui replace sample=1 if campus==228901001& rated_year ==1994; qui replace sample=1 if campus==57910002& rated_year ==2004; qui replace sample=1 if campus==177901001& rated_year ==2008; qui replace sample=1 if campus==15913001& rated_year ==1995; qui replace sample=1 if campus==11901001& rated_year ==2008; qui replace sample=1 if campus==161923001& rated_year ==1999; qui replace sample=1 if campus==161912001& rated_year ==2003; qui replace sample=1 if campus==164901001& rated_year ==2000; qui replace sample=1 if campus==108909001& rated_year ==2000; qui replace sample=1 if campus==46902002& rated_year ==2000; qui replace sample=1 if campus==101912014& rated_year ==2003; qui replace sample=1 if campus==116915001& rated_year ==1999; qui replace sample=1 if campus==71905005& rated_year ==2006; qui replace sample=1 if campus==220905014& rated_year ==2005; qui replace sample=1 if campus==158902001& rated_year ==2007; qui replace sample=1 if campus==184909001& rated_year ==1995; qui replace sample=1 if campus==60902001& rated_year ==1997; qui replace sample=1 if campus==202903001& rated_year ==2000; qui replace sample=1 if campus==170902001& rated_year ==1996; qui replace sample=1 if campus==28902001& rated_year ==2005; qui replace sample=1 if campus==181906001& rated_year ==1996; qui replace sample=1 if campus==152908001& rated_year ==1996; qui replace sample=1 if campus==54903001& rated_year ==2007; qui replace sample=1 if campus==57905002& rated_year ==1998; qui replace sample=1 if campus==177901001& rated_year ==1994; qui replace sample=1 if campus==79906001& rated_year ==2000; qui replace sample=1 if campus==64903001& rated_year ==1995; qui replace sample=1 if campus==127904001& rated_year ==2002; qui replace sample=1 if campus==212901001& rated_year ==2003; qui replace sample=1 if campus==15915003& rated_year ==1997; qui replace sample=1 if campus==31901001& rated_year ==2007; qui replace sample=1 if campus==74917001& rated_year ==2001; qui replace sample=1 if campus==33902001& rated_year ==2003; qui replace sample=1 if campus==248902001& rated_year ==1998; qui replace sample=1 if campus==35902001& rated_year ==2007; qui replace sample=1 if campus==107906001& rated_year ==2007; qui replace sample=1 if campus==178904004& rated_year ==1996; qui replace sample=1 if campus==89901001& rated_year ==2005; qui replace sample=1 if campus==182902001& rated_year ==1997; qui replace sample=1 if campus==101908001& rated_year ==2004; qui replace sample=1 if campus==7904001& rated_year ==2007; qui replace sample=1 if campus==89901001& rated_year ==1998; qui replace sample=1 if campus==89901001& rated_year ==1994; qui replace sample=1 if campus==144902001& rated_year ==2005; qui replace sample=1 if campus==205901001& rated_year ==1995; qui replace sample=1 if campus==15905003& rated_year ==1997; qui replace sample=1 if campus==233901002& rated_year ==2003; qui replace sample=1 if campus==31903002& rated_year ==1996; qui replace sample=1 if campus==70903002& rated_year ==1996; qui replace sample=1 if campus==31901001& rated_year ==1997; qui replace sample=1 if campus==220902002& rated_year ==2002; qui replace sample=1 if campus==101912007& rated_year ==2004; qui replace sample=1 if campus==140905002& rated_year ==1997; qui replace sample=1 if campus==101907003& rated_year ==1997; qui replace sample=1 if campus==184903001& rated_year ==2002; qui replace sample=1 if campus==15910003& rated_year ==1998; qui replace sample=1 if campus==68901003& rated_year ==2003; qui replace sample=1 if campus==15915005& rated_year ==2008; qui replace sample=1 if campus==168901001& rated_year ==1995; qui replace sample=1 if campus==184907001& rated_year ==1997; qui replace sample=1 if campus==170906001& rated_year ==1997; qui replace sample=1 if campus==158902001& rated_year ==1996; qui replace sample=1 if campus==227901009& rated_year ==2005; qui replace sample=1 if campus==101902005& rated_year ==1995; qui replace sample=1 if campus==178904002& rated_year ==2003; qui replace sample=1 if campus==248901001& rated_year ==2001; qui replace sample=1 if campus==204904001& rated_year ==1994; qui replace sample=1 if campus==184903001& rated_year ==2000; qui replace sample=1 if campus==57903001& rated_year ==2003; qui replace sample=1 if campus==57905002& rated_year ==2002; qui replace sample=1 if campus==240901002& rated_year ==1999; qui replace sample=1 if campus==252901001& rated_year ==1998; qui replace sample=1 if campus==53001001& rated_year ==1999; qui replace sample=1 if campus==227901010& rated_year ==2005; qui replace sample=1 if campus==101912002& rated_year ==2001; qui replace sample=1 if campus==101907002& rated_year ==2007; qui replace sample=1 if campus==15901001& rated_year ==1999; qui replace sample=1 if campus==213901001& rated_year ==2005; qui replace sample=1 if campus==57903002& rated_year ==1999; qui replace sample=1 if campus==15915003& rated_year ==2008; qui replace sample=1 if campus==141901001& rated_year ==1999; qui replace sample=1 if campus==85902001& rated_year ==2007; qui replace sample=1 if campus==246902001& rated_year ==2005; qui replace sample=1 if campus==240903001& rated_year ==2008; qui replace sample=1 if campus==91902001& rated_year ==2004; qui replace sample=1 if campus==61912001& rated_year ==1996; qui replace sample=1 if campus==85902001& rated_year ==1995; qui replace sample=1 if campus==241904001& rated_year ==1995; qui replace sample=1 if campus==227901009& rated_year ==2004; qui replace sample=1 if campus==84911001& rated_year ==2008; qui replace sample=1 if campus==161919001& rated_year ==2002; qui replace sample=1 if campus==145901002& rated_year ==2000; qui replace sample=1 if campus==84911001& rated_year ==1998; qui replace sample=1 if campus==178914001& rated_year ==1998; qui replace sample=1 if campus==146907001& rated_year ==2003; qui replace sample=1 if campus==50902001& rated_year ==2004; qui replace sample=1 if campus==101912026& rated_year ==2006; qui replace sample=1 if campus==89901001& rated_year ==1996; qui replace sample=1 if campus==20905001& rated_year ==2001; qui replace sample=1 if campus==43911001& rated_year ==1998; qui replace sample=1 if campus==146901001& rated_year ==2008; qui replace sample=1 if campus==106901001& rated_year ==1999; qui replace sample=1 if campus==247904001& rated_year ==1999; qui replace sample=1 if campus==201903001& rated_year ==2005; qui replace sample=1 if campus==91903001& rated_year ==1996; qui replace sample=1 if campus==14908001& rated_year ==2006; qui replace sample=1 if campus==83901001& rated_year ==2004; qui replace sample=1 if campus==220905008& rated_year ==1995; qui replace sample=1 if campus==220904001& rated_year ==1998; qui replace sample=1 if campus==8901001& rated_year ==1996; qui replace sample=1 if campus==144901001& rated_year ==1998; qui replace sample=1 if campus==101914001& rated_year ==2006; qui replace sample=1 if campus==84910003& rated_year ==2007; qui replace sample=1 if campus==31909001& rated_year ==2001; qui replace sample=1 if campus==46901001& rated_year ==2005; qui replace sample=1 if campus==84910003& rated_year ==2001; qui replace sample=1 if campus==165901044& rated_year ==2004; qui replace sample=1 if campus==84910003& rated_year ==1996; qui replace sample=1 if campus==30903001& rated_year ==1999; qui replace sample=1 if campus==84910002& rated_year ==2008; qui replace sample=1 if campus==79907002& rated_year ==1995; qui replace sample=1 if campus==84910002& rated_year ==2002; qui replace sample=1 if campus==84910002& rated_year ==2001; qui replace sample=1 if campus==84910002& rated_year ==1999; qui replace sample=1 if campus==166904001& rated_year ==1997; qui replace sample=1 if campus==92902002& rated_year ==1998; qui replace sample=1 if campus==219903001& rated_year ==2008; qui replace sample=1 if campus==108907001& rated_year ==1999; qui replace sample=1 if campus==107906001& rated_year ==1999; qui replace sample=1 if campus==30906001& rated_year ==2005; qui replace sample=1 if campus==84910001& rated_year ==2001; qui replace sample=1 if campus==31901004& rated_year ==2004; qui replace sample=1 if campus==84910001& rated_year ==1999; qui replace sample=1 if campus==84910001& rated_year ==1997; qui replace sample=1 if campus==113902002& rated_year ==1995; qui replace sample=1 if campus==184904001& rated_year ==2003; qui replace sample=1 if campus==43914001& rated_year ==2000; qui replace sample=1 if campus==209901001& rated_year ==2005; qui replace sample=1 if campus==210902001& rated_year ==2002; qui replace sample=1 if campus==201903001& rated_year ==1995; qui replace sample=1 if campus==84909001& rated_year ==2001; qui replace sample=1 if campus==61902002& rated_year ==2001; qui replace sample=1 if campus==84909001& rated_year ==1999; qui replace sample=1 if campus==66901001& rated_year ==2004; qui replace sample=1 if campus==181906001& rated_year ==2002; qui replace sample=1 if campus==57905026& rated_year ==2006; qui replace sample=1 if campus==15915006& rated_year ==2000; qui replace sample=1 if campus==114904001& rated_year ==2007; qui replace sample=1 if campus==108904001& rated_year ==2000; qui replace sample=1 if campus==127901001& rated_year ==2003; qui replace sample=1 if campus==253901001& rated_year ==1995; qui replace sample=1 if campus==84908001& rated_year ==2004; qui replace sample=1 if campus==82902001& rated_year ==1997; qui replace sample=1 if campus==84908001& rated_year ==2001; qui replace sample=1 if campus==57912003& rated_year ==2004; qui replace sample=1 if campus==71902001& rated_year ==1994; qui replace sample=1 if campus==40901001& rated_year ==1998; qui replace sample=1 if campus==7904001& rated_year ==1999; qui replace sample=1 if campus==84908001& rated_year ==1994; qui replace sample=1 if campus==165901042& rated_year ==1994; qui replace sample=1 if campus==120905001& rated_year ==2004; qui replace sample=1 if campus==89901001& rated_year ==2003; qui replace sample=1 if campus==31901002& rated_year ==2007; qui replace sample=1 if campus==152902001& rated_year ==1998; qui replace sample=1 if campus==101912024& rated_year ==2008; qui replace sample=1 if campus==25902001& rated_year ==1994; qui replace sample=1 if campus==47901001& rated_year ==1999; qui replace sample=1 if campus==101912006& rated_year ==2001; qui replace sample=1 if campus==92903001& rated_year ==2000; qui replace sample=1 if campus==178903001& rated_year ==1996; qui replace sample=1 if campus==71902005& rated_year ==2008; qui replace sample=1 if campus==144902001& rated_year ==2004; qui replace sample=1 if campus==43910003& rated_year ==2007; qui replace sample=1 if campus==84906001& rated_year ==1994; qui replace sample=1 if campus==220905016& rated_year ==1999; qui replace sample=1 if campus==129901001& rated_year ==2007; qui replace sample=1 if campus==71902006& rated_year ==1995; qui replace sample=1 if campus==21901001& rated_year ==2008; qui replace sample=1 if campus==61906001& rated_year ==1997; qui replace sample=1 if campus==84904001& rated_year ==2006; qui replace sample=1 if campus==71905014& rated_year ==1995; qui replace sample=1 if campus==19903001& rated_year ==2004; qui replace sample=1 if campus==220905009& rated_year ==2003; qui replace sample=1 if campus==117903001& rated_year ==2007; qui replace sample=1 if campus==84904001& rated_year ==1996; qui replace sample=1 if campus==84904001& rated_year ==1995; qui replace sample=1 if campus==191901002& rated_year ==2008; qui replace sample=1 if campus==71902008& rated_year ==2000; qui replace sample=1 if campus==84903001& rated_year ==2005; qui replace sample=1 if campus==84903001& rated_year ==1999; qui replace sample=1 if campus==175902001& rated_year ==2006; qui replace sample=1 if campus==84903001& rated_year ==1994; qui replace sample=1 if campus==1909001& rated_year ==2000; qui replace sample=1 if campus==214901001& rated_year ==1998; qui replace sample=1 if campus==144901001& rated_year ==2000; qui replace sample=1 if campus==178912001& rated_year ==2002; qui replace sample=1 if campus==31903002& rated_year ==2008; qui replace sample=1 if campus==184904001& rated_year ==2005; qui replace sample=1 if campus==227901003& rated_year ==2001; qui replace sample=1 if campus==129903001& rated_year ==2003; qui replace sample=1 if campus==101902002& rated_year ==1996; qui replace sample=1 if campus==141901001& rated_year ==2007; qui replace sample=1 if campus==180902001& rated_year ==2006; qui replace sample=1 if campus==84902001& rated_year ==2006; qui replace sample=1 if campus==84902001& rated_year ==2004; qui replace sample=1 if campus==84902001& rated_year ==2003; qui replace sample=1 if campus==188901002& rated_year ==1996; qui replace sample=1 if campus==91913001& rated_year ==1999; qui replace sample=1 if campus==232902001& rated_year ==2001; qui replace sample=1 if campus==146901001& rated_year ==2001; qui replace sample=1 if campus==11901001& rated_year ==1999; qui replace sample=1 if campus==121903001& rated_year ==2002; qui replace sample=1 if campus==19909001& rated_year ==2000; qui replace sample=1 if campus==188901005& rated_year ==1996; qui replace sample=1 if campus==246909001& rated_year ==2003; qui replace sample=1 if campus==101912019& rated_year ==1997; qui replace sample=1 if campus==25901001& rated_year ==2007; qui replace sample=1 if campus==172905002& rated_year ==2002; qui replace sample=1 if campus==220905014& rated_year ==1997; qui replace sample=1 if campus==100904001& rated_year ==2008; qui replace sample=1 if campus==101912005& rated_year ==2000; qui replace sample=1 if campus==101912014& rated_year ==2000; qui replace sample=1 if campus==92907001& rated_year ==2007; qui replace sample=1 if campus==175903001& rated_year ==2002; qui replace sample=1 if campus==168901001& rated_year ==2004; qui replace sample=1 if campus==184904001& rated_year ==1999; qui replace sample=1 if campus==152903001& rated_year ==2003; qui replace sample=1 if campus==108903001& rated_year ==2005; qui replace sample=1 if campus==113903002& rated_year ==2001; qui replace sample=1 if campus==84901001& rated_year ==1994; qui replace sample=1 if campus==145906001& rated_year ==1994; qui replace sample=1 if campus==225902001& rated_year ==1997; qui replace sample=1 if campus==7901001& rated_year ==2007; qui replace sample=1 if campus==13905001& rated_year ==2004; qui replace sample=1 if campus==83903001& rated_year ==2005; qui replace sample=1 if campus==212906001& rated_year ==2001; qui replace sample=1 if campus==83903001& rated_year ==2002; qui replace sample=1 if campus==101912004& rated_year ==2001; qui replace sample=1 if campus==243905002& rated_year ==1999; qui replace sample=1 if campus==230906001& rated_year ==2002; qui replace sample=1 if campus==212901001& rated_year ==1995; qui replace sample=1 if campus==4901001& rated_year ==2005; qui replace sample=1 if campus==187907002& rated_year ==2003; qui replace sample=1 if campus==31912001& rated_year ==1997; qui replace sample=1 if campus==231901001& rated_year ==2007; qui replace sample=1 if campus==108906002& rated_year ==2003; qui replace sample=1 if campus==4901001& rated_year ==1995; qui replace sample=1 if campus==181908001& rated_year ==2005; qui replace sample=1 if campus==220917001& rated_year ==2001; qui replace sample=1 if campus==57909005& rated_year ==1997; qui replace sample=1 if campus==116908001& rated_year ==1997; qui replace sample=1 if campus==161907001& rated_year ==2008; qui replace sample=1 if campus==194904002& rated_year ==2003; qui replace sample=1 if campus==91910001& rated_year ==2000; qui replace sample=1 if campus==83901001& rated_year ==2001; qui replace sample=1 if campus==101907004& rated_year ==2001; qui replace sample=1 if campus==205907001& rated_year ==1995; qui replace sample=1 if campus==229901001& rated_year ==2003; qui replace sample=1 if campus==15907007& rated_year ==2004; qui replace sample=1 if campus==100905001& rated_year ==2008; qui replace sample=1 if campus==57912002& rated_year ==1998; qui replace sample=1 if campus==82903001& rated_year ==2008; qui replace sample=1 if campus==31916001& rated_year ==2003; qui replace sample=1 if campus==58906001& rated_year ==2005; qui replace sample=1 if campus==82903001& rated_year ==2003; qui replace sample=1 if campus==82903001& rated_year ==2001; qui replace sample=1 if campus==15915003& rated_year ==2000; qui replace sample=1 if campus==225902001& rated_year ==2007; qui replace sample=1 if campus==250902001& rated_year ==1994; qui replace sample=1 if campus==108911001& rated_year ==2008; qui replace sample=1 if campus==64903001& rated_year ==2007; qui replace sample=1 if campus==168901001& rated_year ==1994; qui replace sample=1 if campus==57909004& rated_year ==1999; qui replace sample=1 if campus==7905001& rated_year ==2006; qui replace sample=1 if campus==1904001& rated_year ==1994; qui replace sample=1 if campus==202905002& rated_year ==2006; qui replace sample=1 if campus==57911001& rated_year ==1998; qui replace sample=1 if campus==220905009& rated_year ==1994; qui replace sample=1 if campus==82902001& rated_year ==2000; qui replace sample=1 if campus==57905014& rated_year ==2006; qui replace sample=1 if campus==81905002& rated_year ==2007; qui replace sample=1 if campus==81905002& rated_year ==2005; qui replace sample=1 if campus==81905002& rated_year ==2002; qui replace sample=1 if campus==81905002& rated_year ==2001; qui replace sample=1 if campus==24901001& rated_year ==1996; qui replace sample=1 if campus==81905002& rated_year ==1998; qui replace sample=1 if campus==116915001& rated_year ==2000; qui replace sample=1 if campus==81904001& rated_year ==2008; qui replace sample=1 if campus==101907003& rated_year ==2002; qui replace sample=1 if campus==81904001& rated_year ==2003; qui replace sample=1 if campus==184902001& rated_year ==2005; qui replace sample=1 if campus==81904001& rated_year ==2001; qui replace sample=1 if campus==34907001& rated_year ==2008; qui replace sample=1 if campus==120905001& rated_year ==2007; qui replace sample=1 if campus==36902001& rated_year ==1994; qui replace sample=1 if campus==71902003& rated_year ==2005; qui replace sample=1 if campus==161919001& rated_year ==2007; qui replace sample=1 if campus==194903001& rated_year ==1995; qui replace sample=1 if campus==81902002& rated_year ==2005; qui replace sample=1 if campus==241903001& rated_year ==1996; qui replace sample=1 if campus==246908001& rated_year ==2004; qui replace sample=1 if campus==227901002& rated_year ==1995; qui replace sample=1 if campus==14910001& rated_year ==2003; qui replace sample=1 if campus==81902002& rated_year ==1996; qui replace sample=1 if campus==91913001& rated_year ==2001; qui replace sample=1 if campus==80901001& rated_year ==2003; qui replace sample=1 if campus==80901001& rated_year ==2000; qui replace sample=1 if campus==80901001& rated_year ==1997; qui replace sample=1 if campus==80901001& rated_year ==1995; qui replace sample=1 if campus==201908001& rated_year ==2002; qui replace sample=1 if campus==79910001& rated_year ==2006; qui replace sample=1 if campus==233901001& rated_year ==2005; qui replace sample=1 if campus==79910001& rated_year ==2002; qui replace sample=1 if campus==168901001& rated_year ==2006; qui replace sample=1 if campus==184909001& rated_year ==2000; qui replace sample=1 if campus==101912009& rated_year ==1999; qui replace sample=1 if campus==79910001& rated_year ==1998; qui replace sample=1 if campus==15907005& rated_year ==1998; qui replace sample=1 if campus==246909003& rated_year ==2000; qui replace sample=1 if campus==161914002& rated_year ==1999; qui replace sample=1 if campus==101912006& rated_year ==1999; qui replace sample=1 if campus==205902001& rated_year ==2001; qui replace sample=1 if campus==227901003& rated_year ==2007; qui replace sample=1 if campus==188901004& rated_year ==2004; qui replace sample=1 if campus==214901001& rated_year ==2003; qui replace sample=1 if campus==15906001& rated_year ==1994; qui replace sample=1 if campus==219903001& rated_year ==1998; qui replace sample=1 if campus==152910001& rated_year ==1997; qui replace sample=1 if campus==133904001& rated_year ==1994; qui replace sample=1 if campus==225902001& rated_year ==2005; qui replace sample=1 if campus==57909003& rated_year ==2006; qui replace sample=1 if campus==99903001& rated_year ==1996; qui replace sample=1 if campus==108909001& rated_year ==2002; qui replace sample=1 if campus==117901001& rated_year ==2007; qui replace sample=1 if campus==212902001& rated_year ==2007; qui replace sample=1 if campus==114901001& rated_year ==1995; qui replace sample=1 if campus==57914001& rated_year ==2005; qui replace sample=1 if campus==246911001& rated_year ==2000; qui replace sample=1 if campus==91908001& rated_year ==1997; qui replace sample=1 if campus==57905022& rated_year ==2006; qui replace sample=1 if campus==229903001& rated_year ==2006; qui replace sample=1 if campus==108903001& rated_year ==1999; qui replace sample=1 if campus==158905001& rated_year ==2003; qui replace sample=1 if campus==98904001& rated_year ==1998; qui replace sample=1 if campus==14905001& rated_year ==2002; qui replace sample=1 if campus==129902001& rated_year ==2000; qui replace sample=1 if campus==61906001& rated_year ==1999; qui replace sample=1 if campus==30901001& rated_year ==2000; qui replace sample=1 if campus==174908001& rated_year ==1997; qui replace sample=1 if campus==129906002& rated_year ==1995; qui replace sample=1 if campus==126907001& rated_year ==1998; qui replace sample=1 if campus==161921001& rated_year ==2002; qui replace sample=1 if campus==91905001& rated_year ==2007; qui replace sample=1 if campus==170902005& rated_year ==1995; qui replace sample=1 if campus==57911001& rated_year ==2008; qui replace sample=1 if campus==79907006& rated_year ==2002; qui replace sample=1 if campus==211902001& rated_year ==2005; qui replace sample=1 if campus==71907001& rated_year ==2004; qui replace sample=1 if campus==37901001& rated_year ==2006; qui replace sample=1 if campus==227910001& rated_year ==2004; qui replace sample=1 if campus==195901001& rated_year ==1999; qui replace sample=1 if campus==123910008& rated_year ==1997; qui replace sample=1 if campus==220905008& rated_year ==2000; qui replace sample=1 if campus==120901001& rated_year ==2006; qui replace sample=1 if campus==39902001& rated_year ==1995; qui replace sample=1 if campus==243901001& rated_year ==1995; qui replace sample=1 if campus==102905001& rated_year ==2005; qui replace sample=1 if campus==28902001& rated_year ==2002; qui replace sample=1 if campus==79907004& rated_year ==2001; qui replace sample=1 if campus==57905013& rated_year ==1996; qui replace sample=1 if campus==57904001& rated_year ==2001; qui replace sample=1 if campus==66901001& rated_year ==1997; qui replace sample=1 if campus==20908001& rated_year ==1997; qui replace sample=1 if campus==79907002& rated_year ==2006; qui replace sample=1 if campus==166901002& rated_year ==1997; qui replace sample=1 if campus==101902003& rated_year ==2005; qui replace sample=1 if campus==126902001& rated_year ==2002; qui replace sample=1 if campus==170902003& rated_year ==2006; qui replace sample=1 if campus==184904001& rated_year ==2007; qui replace sample=1 if campus==57912002& rated_year ==1997; qui replace sample=1 if campus==129906002& rated_year ==1996; qui replace sample=1 if campus==70907001& rated_year ==2004; qui replace sample=1 if campus==113906001& rated_year ==2000; qui replace sample=1 if campus==191901001& rated_year ==2007; qui replace sample=1 if campus==108904001& rated_year ==2007; qui replace sample=1 if campus==79901002& rated_year ==2005; qui replace sample=1 if campus==79906001& rated_year ==2001; qui replace sample=1 if campus==101902005& rated_year ==2007; qui replace sample=1 if campus==15915003& rated_year ==2006; qui replace sample=1 if campus==57905021& rated_year ==2003; qui replace sample=1 if campus==79906001& rated_year ==1995; qui replace sample=1 if campus==101912025& rated_year ==2003; qui replace sample=1 if campus==101908001& rated_year ==1999; qui replace sample=1 if campus==178904001& rated_year ==1997; qui replace sample=1 if campus==161903001& rated_year ==2002; qui replace sample=1 if campus==108910001& rated_year ==1997; qui replace sample=1 if campus==14905001& rated_year ==1995; qui replace sample=1 if campus==108903001& rated_year ==2001; qui replace sample=1 if campus==212906001& rated_year ==2008; qui replace sample=1 if campus==177901001& rated_year ==1996; qui replace sample=1 if campus==25902001& rated_year ==1996; qui replace sample=1 if campus==220905009& rated_year ==2006; qui replace sample=1 if campus==188901004& rated_year ==2002; qui replace sample=1 if campus==3906001& rated_year ==2008; qui replace sample=1 if campus==250903001& rated_year ==1997; qui replace sample=1 if campus==30902001& rated_year ==1994; qui replace sample=1 if campus==237904002& rated_year ==2000; qui replace sample=1 if campus==12901001& rated_year ==2008; qui replace sample=1 if campus==71909002& rated_year ==2008; qui replace sample=1 if campus==101910003& rated_year ==2006; qui replace sample=1 if campus==240901002& rated_year ==1998; qui replace sample=1 if campus==108916001& rated_year ==2001; qui replace sample=1 if campus==220904001& rated_year ==1997; qui replace sample=1 if campus==114901001& rated_year ==2008; qui replace sample=1 if campus==183901001& rated_year ==1998; qui replace sample=1 if campus==121906001& rated_year ==2004; qui replace sample=1 if campus==63903001& rated_year ==2002; qui replace sample=1 if campus==178904003& rated_year ==2000; qui replace sample=1 if campus==161914002& rated_year ==2006; qui replace sample=1 if campus==79901002& rated_year ==2001; qui replace sample=1 if campus==200902001& rated_year ==1995; qui replace sample=1 if campus==181907001& rated_year ==2004; qui replace sample=1 if campus==101908001& rated_year ==1994; qui replace sample=1 if campus==107910001& rated_year ==2006; qui replace sample=1 if campus==101917004& rated_year ==1994; qui replace sample=1 if campus==79901001& rated_year ==2005; qui replace sample=1 if campus==13905001& rated_year ==1994; qui replace sample=1 if campus==226905001& rated_year ==1995; qui replace sample=1 if campus==79901001& rated_year ==2001; qui replace sample=1 if campus==204901001& rated_year ==2003; qui replace sample=1 if campus==107906001& rated_year ==2002; qui replace sample=1 if campus==180901001& rated_year ==2003; qui replace sample=1 if campus==178912001& rated_year ==2008; qui replace sample=1 if campus==254901001& rated_year ==2001; qui replace sample=1 if campus==123914001& rated_year ==1997; qui replace sample=1 if campus==204901001& rated_year ==2007; qui replace sample=1 if campus==101902001& rated_year ==1998; qui replace sample=1 if campus==227910001& rated_year ==2005; qui replace sample=1 if campus==107910001& rated_year ==2008; qui replace sample=1 if campus==13901001& rated_year ==2000; qui replace sample=1 if campus==116908001& rated_year ==1994; qui replace sample=1 if campus==61906001& rated_year ==2000; qui replace sample=1 if campus==31916004& rated_year ==1999; qui replace sample=1 if campus==161919001& rated_year ==2004; qui replace sample=1 if campus==57914001& rated_year ==1996; qui replace sample=1 if campus==212906001& rated_year ==1997; qui replace sample=1 if campus==105904001& rated_year ==2002; qui replace sample=1 if campus==92901001& rated_year ==1996; qui replace sample=1 if campus==246909003& rated_year ==1999; qui replace sample=1 if campus==226906001& rated_year ==1999; qui replace sample=1 if campus==101907004& rated_year ==1996; qui replace sample=1 if campus==178909001& rated_year ==1996; qui replace sample=1 if campus==46902001& rated_year ==2006; qui replace sample=1 if campus==102902001& rated_year ==2005; qui replace sample=1 if campus==243903001& rated_year ==2008; qui replace sample=1 if campus==175903001& rated_year ==2007; qui replace sample=1 if campus==101915001& rated_year ==2006; qui replace sample=1 if campus==161906002& rated_year ==1999; qui replace sample=1 if campus==108903001& rated_year ==2006; qui replace sample=1 if campus==57906001& rated_year ==1995; qui replace sample=1 if campus==71902009& rated_year ==2000; qui replace sample=1 if campus==243903001& rated_year ==1994; qui replace sample=1 if campus==112901002& rated_year ==1994; qui replace sample=1 if campus==62904001& rated_year ==1998; qui replace sample=1 if campus==170906001& rated_year ==1994; qui replace sample=1 if campus==187901001& rated_year ==1998; qui replace sample=1 if campus==175907001& rated_year ==2000; qui replace sample=1 if campus==71909002& rated_year ==2000; qui replace sample=1 if campus==234906001& rated_year ==1996; qui replace sample=1 if campus==101915003& rated_year ==1994; qui replace sample=1 if campus==57905034& rated_year ==2003; qui replace sample=1 if campus==43918001& rated_year ==2005; qui replace sample=1 if campus==57912003& rated_year ==1995; qui replace sample=1 if campus==95901001& rated_year ==2007; qui replace sample=1 if campus==91910001& rated_year ==2001; qui replace sample=1 if campus==108916001& rated_year ==1995; qui replace sample=1 if campus==15905002& rated_year ==1994; qui replace sample=1 if campus==57913001& rated_year ==1994; qui replace sample=1 if campus==233901002& rated_year ==2001; qui replace sample=1 if campus==166901002& rated_year ==1994; qui replace sample=1 if campus==92907001& rated_year ==1996; qui replace sample=1 if campus==170903002& rated_year ==2008; qui replace sample=1 if campus==109904001& rated_year ==1999; qui replace sample=1 if campus==220905011& rated_year ==1996; qui replace sample=1 if campus==161921001& rated_year ==1996; qui replace sample=1 if campus==241906001& rated_year ==1994; qui replace sample=1 if campus==153904001& rated_year ==2000; qui replace sample=1 if campus==49907001& rated_year ==1995; qui replace sample=1 if campus==75902001& rated_year ==1996; qui replace sample=1 if campus==101917003& rated_year ==1994; qui replace sample=1 if campus==75901001& rated_year ==2000; qui replace sample=1 if campus==3907001& rated_year ==2006; qui replace sample=1 if campus==129901001& rated_year ==2006; qui replace sample=1 if campus==74917001& rated_year ==2007; qui replace sample=1 if campus==233901001& rated_year ==2001; qui replace sample=1 if campus==31913001& rated_year ==2007; qui replace sample=1 if campus==31913001& rated_year ==1997; qui replace sample=1 if campus==74917001& rated_year ==1997; qui replace sample=1 if campus==252903001& rated_year ==2003; qui replace sample=1 if campus==79901001& rated_year ==1997; qui replace sample=1 if campus==79907001& rated_year ==2007; qui replace sample=1 if campus==203901002& rated_year ==1996; qui replace sample=1 if campus==15907182& rated_year ==2002; qui replace sample=1 if campus==227907001& rated_year ==1999; qui replace sample=1 if campus==140905002& rated_year ==2008; qui replace sample=1 if campus==181901001& rated_year ==2007; qui replace sample=1 if campus==137903001& rated_year ==2000; qui replace sample=1 if campus==247904001& rated_year ==2001; qui replace sample=1 if campus==239903001& rated_year ==2000; qui replace sample=1 if campus==204904001& rated_year ==1995; qui replace sample=1 if campus==44902001& rated_year ==2006; qui replace sample=1 if campus==126911001& rated_year ==2007; qui replace sample=1 if campus==123910001& rated_year ==2003; qui replace sample=1 if campus==101912020& rated_year ==1997; qui replace sample=1 if campus==43907002& rated_year ==2007; qui replace sample=1 if campus==57905032& rated_year ==2004; qui replace sample=1 if campus==95905001& rated_year ==1994; qui replace sample=1 if campus==215901001& rated_year ==2003; qui replace sample=1 if campus==15907003& rated_year ==2004; qui replace sample=1 if campus==13901001& rated_year ==1995; qui replace sample=1 if campus==43910005& rated_year ==1997; qui replace sample=1 if campus==101913001& rated_year ==2005; qui replace sample=1 if campus==210905001& rated_year ==2000; qui replace sample=1 if campus==92907001& rated_year ==1994; qui replace sample=1 if campus==212905003& rated_year ==2003; qui replace sample=1 if campus==174903001& rated_year ==2007; qui replace sample=1 if campus==61902001& rated_year ==1994; qui replace sample=1 if campus==2901001& rated_year ==2000; qui replace sample=1 if campus==108906006& rated_year ==1998; qui replace sample=1 if campus==123910003& rated_year ==1994; qui replace sample=1 if campus==109907001& rated_year ==2005; qui replace sample=1 if campus==219903001& rated_year ==1994; qui replace sample=1 if campus==221912001& rated_year ==2004; qui replace sample=1 if campus==129904001& rated_year ==1997; qui replace sample=1 if campus==121904001& rated_year ==2008; qui replace sample=1 if campus==74903001& rated_year ==1995; qui replace sample=1 if campus==24901001& rated_year ==1994; qui replace sample=1 if campus==73903001& rated_year ==2008; qui replace sample=1 if campus==102901002& rated_year ==2003; qui replace sample=1 if campus==101915001& rated_year ==1994; qui replace sample=1 if campus==61911001& rated_year ==1994; qui replace sample=1 if campus==220905005& rated_year ==2007; qui replace sample=1 if campus==200904001& rated_year ==1995; qui replace sample=1 if campus==9901001& rated_year ==2007; qui replace sample=1 if campus==71902009& rated_year ==2007; qui replace sample=1 if campus==113906001& rated_year ==1995; qui replace sample=1 if campus==43918001& rated_year ==2008; qui replace sample=1 if campus==26901001& rated_year ==2001; qui replace sample=1 if campus==15907004& rated_year ==2003; qui replace sample=1 if campus==57905032& rated_year ==1998; qui replace sample=1 if campus==101912019& rated_year ==2007; qui replace sample=1 if campus==80901001& rated_year ==1996; qui replace sample=1 if campus==61905001& rated_year ==2001; qui replace sample=1 if campus==84904001& rated_year ==2005; qui replace sample=1 if campus==73903001& rated_year ==2001; qui replace sample=1 if campus==73903001& rated_year ==1998; qui replace sample=1 if campus==22901001& rated_year ==2002; qui replace sample=1 if campus==73903001& rated_year ==1994; qui replace sample=1 if campus==139905001& rated_year ==2008; qui replace sample=1 if campus==101914001& rated_year ==2007; qui replace sample=1 if campus==100907001& rated_year ==1997; qui replace sample=1 if campus==184903001& rated_year ==1999; qui replace sample=1 if campus==153904001& rated_year ==1995; qui replace sample=1 if campus==207901001& rated_year ==2007; qui replace sample=1 if campus==101912005& rated_year ==1999; qui replace sample=1 if campus==74917001& rated_year ==1996; qui replace sample=1 if campus==101912012& rated_year ==2007; qui replace sample=1 if campus==117903001& rated_year ==2008; qui replace sample=1 if campus==232903001& rated_year ==1995; qui replace sample=1 if campus==79910001& rated_year ==1994; qui replace sample=1 if campus==61902004& rated_year ==2006; qui replace sample=1 if campus==249905001& rated_year ==2003; qui replace sample=1 if campus==161920001& rated_year ==1995; qui replace sample=1 if campus==158906002& rated_year ==1998; qui replace sample=1 if campus==43904001& rated_year ==2001; qui replace sample=1 if campus==43914001& rated_year ==2006; qui replace sample=1 if campus==130902001& rated_year ==2007; qui replace sample=1 if campus==28902001& rated_year ==2001; qui replace sample=1 if campus==182902001& rated_year ==1994; qui replace sample=1 if campus==102901002& rated_year ==2004; qui replace sample=1 if campus==56901001& rated_year ==1996; qui replace sample=1 if campus==133901001& rated_year ==1997; qui replace sample=1 if campus==245903001& rated_year ==2004; qui replace sample=1 if campus==198903001& rated_year ==1999; qui replace sample=1 if campus==108904001& rated_year ==2004; qui replace sample=1 if campus==72902001& rated_year ==2000; qui replace sample=1 if campus==15913001& rated_year ==2002; qui replace sample=1 if campus==100903002& rated_year ==1995; qui replace sample=1 if campus==130901001& rated_year ==2002; qui replace sample=1 if campus==57905097& rated_year ==1999; qui replace sample=1 if campus==210902001& rated_year ==1999; qui replace sample=1 if campus==101917002& rated_year ==2001; qui replace sample=1 if campus==49903001& rated_year ==2006; qui replace sample=1 if campus==102901002& rated_year ==1999; qui replace sample=1 if campus==206901001& rated_year ==2002; qui replace sample=1 if campus==227904001& rated_year ==2004; qui replace sample=1 if campus==227904001& rated_year ==1999; qui replace sample=1 if campus==82902001& rated_year ==2008; qui replace sample=1 if campus==220905005& rated_year ==2006; qui replace sample=1 if campus==170902001& rated_year ==2002; qui replace sample=1 if campus==129906002& rated_year ==2006; qui replace sample=1 if campus==227901005& rated_year ==2001; qui replace sample=1 if campus==13903001& rated_year ==1994; qui replace sample=1 if campus==43902001& rated_year ==2007; qui replace sample=1 if campus==43918001& rated_year ==2004; qui replace sample=1 if campus==113903002& rated_year ==2000; qui replace sample=1 if campus==42901001& rated_year ==1994; qui replace sample=1 if campus==68901003& rated_year ==2002; qui replace sample=1 if campus==15910003& rated_year ==2002; qui replace sample=1 if campus==71909002& rated_year ==2007; qui replace sample=1 if campus==220905010& rated_year ==2006; qui replace sample=1 if campus==108914001& rated_year ==1995; qui replace sample=1 if campus==71909002& rated_year ==1996; qui replace sample=1 if campus==235901001& rated_year ==2003; qui replace sample=1 if campus==20901001& rated_year ==2000; qui replace sample=1 if campus==46902002& rated_year ==2002; qui replace sample=1 if campus==64903001& rated_year ==2002; qui replace sample=1 if campus==220920001& rated_year ==1994; qui replace sample=1 if campus==212906001& rated_year ==2002; qui replace sample=1 if campus==94901001& rated_year ==2005; qui replace sample=1 if campus==70915001& rated_year ==2000; qui replace sample=1 if campus==71908001& rated_year ==2008; qui replace sample=1 if campus==71908001& rated_year ==2005; qui replace sample=1 if campus==71908001& rated_year ==2004; qui replace sample=1 if campus==71908001& rated_year ==2002; qui replace sample=1 if campus==53001001& rated_year ==1996; qui replace sample=1 if campus==71901001& rated_year ==2004; qui replace sample=1 if campus==71908001& rated_year ==1997; qui replace sample=1 if campus==227901013& rated_year ==1997; qui replace sample=1 if campus==61902002& rated_year ==2003; qui replace sample=1 if campus==181906001& rated_year ==2001; qui replace sample=1 if campus==101917001& rated_year ==1997; qui replace sample=1 if campus==113905001& rated_year ==1995; qui replace sample=1 if campus==57911001& rated_year ==2004; qui replace sample=1 if campus==174908001& rated_year ==2001; qui replace sample=1 if campus==71907001& rated_year ==2001; qui replace sample=1 if campus==71907001& rated_year ==2000; qui replace sample=1 if campus==71907001& rated_year ==1999; qui replace sample=1 if campus==234906001& rated_year ==2002; qui replace sample=1 if campus==71907001& rated_year ==1997; qui replace sample=1 if campus==71907001& rated_year ==1996; qui replace sample=1 if campus==156902001& rated_year ==1994; qui replace sample=1 if campus==72902001& rated_year ==2007; qui replace sample=1 if campus==31916001& rated_year ==2004; qui replace sample=1 if campus==161912001& rated_year ==2002; qui replace sample=1 if campus==181908001& rated_year ==2007; qui replace sample=1 if campus==1908002& rated_year ==2001; qui replace sample=1 if campus==71906001& rated_year ==1995; qui replace sample=1 if campus==220912001& rated_year ==2005; qui replace sample=1 if campus==28902001& rated_year ==2006; qui replace sample=1 if campus==101912001& rated_year ==1994; qui replace sample=1 if campus==73905001& rated_year ==2003; qui replace sample=1 if campus==43907002& rated_year ==1999; qui replace sample=1 if campus==20902001& rated_year ==1994; qui replace sample=1 if campus==84904001& rated_year ==2001; qui replace sample=1 if campus==220917001& rated_year ==2007; qui replace sample=1 if campus==79907002& rated_year ==1996; qui replace sample=1 if campus==7906001& rated_year ==2000; qui replace sample=1 if campus==250903001& rated_year ==2001; qui replace sample=1 if campus==57905007& rated_year ==2000; qui replace sample=1 if campus==57905001& rated_year ==2005; qui replace sample=1 if campus==101913001& rated_year ==2004; qui replace sample=1 if campus==14906001& rated_year ==1998; qui replace sample=1 if campus==233901002& rated_year ==2007; qui replace sample=1 if campus==90904001& rated_year ==1998; qui replace sample=1 if campus==198903001& rated_year ==2002; qui replace sample=1 if campus==139912001& rated_year ==1997; qui replace sample=1 if campus==163904001& rated_year ==2007; qui replace sample=1 if campus==1904001& rated_year ==2006; qui replace sample=1 if campus==57903002& rated_year ==2001; qui replace sample=1 if campus==61906001& rated_year ==1996; qui replace sample=1 if campus==170902001& rated_year ==2001; qui replace sample=1 if campus==123908001& rated_year ==1998; qui replace sample=1 if campus==178904004& rated_year ==2002; qui replace sample=1 if campus==154901001& rated_year ==1996; qui replace sample=1 if campus==57905018& rated_year ==2005; qui replace sample=1 if campus==85902001& rated_year ==1998; qui replace sample=1 if campus==210901001& rated_year ==2005; qui replace sample=1 if campus==71902009& rated_year ==2003; qui replace sample=1 if campus==15910005& rated_year ==2005; qui replace sample=1 if campus==13903001& rated_year ==2005; qui replace sample=1 if campus==25909001& rated_year ==2007; qui replace sample=1 if campus==225902001& rated_year ==1995; qui replace sample=1 if campus==184909001& rated_year ==2002; qui replace sample=1 if campus==234904001& rated_year ==1995; qui replace sample=1 if campus==107902001& rated_year ==2002; qui replace sample=1 if campus==141902001& rated_year ==2004; qui replace sample=1 if campus==15907005& rated_year ==2000; qui replace sample=1 if campus==54902001& rated_year ==2002; qui replace sample=1 if campus==46902001& rated_year ==2003; qui replace sample=1 if campus==51901001& rated_year ==2003; qui replace sample=1 if campus==79907002& rated_year ==2005; qui replace sample=1 if campus==71905014& rated_year ==2005; qui replace sample=1 if campus==71905014& rated_year ==2004; qui replace sample=1 if campus==27903001& rated_year ==1997; qui replace sample=1 if campus==71905014& rated_year ==2002; qui replace sample=1 if campus==92901001& rated_year ==1995; qui replace sample=1 if campus==71905014& rated_year ==1998; qui replace sample=1 if campus==123914001& rated_year ==2002; qui replace sample=1 if campus==71905014& rated_year ==1994; qui replace sample=1 if campus==57913001& rated_year ==1997; qui replace sample=1 if campus==84909001& rated_year ==2006; qui replace sample=1 if campus==15908001& rated_year ==1996; qui replace sample=1 if campus==184904001& rated_year ==1998; qui replace sample=1 if campus==43910003& rated_year ==2001; qui replace sample=1 if campus==170902005& rated_year ==2002; qui replace sample=1 if campus==126903001& rated_year ==1994; qui replace sample=1 if campus==158905001& rated_year ==2004; qui replace sample=1 if campus==47901001& rated_year ==1998; qui replace sample=1 if campus==109905001& rated_year ==1998; qui replace sample=1 if campus==75901001& rated_year ==2005; qui replace sample=1 if campus==133904001& rated_year ==1998; qui replace sample=1 if campus==63903001& rated_year ==2008; qui replace sample=1 if campus==250905001& rated_year ==1999; qui replace sample=1 if campus==108908001& rated_year ==1999; qui replace sample=1 if campus==71905007& rated_year ==2004; qui replace sample=1 if campus==43910007& rated_year ==1997; qui replace sample=1 if campus==180902001& rated_year ==2002; qui replace sample=1 if campus==71905007& rated_year ==2001; qui replace sample=1 if campus==71905007& rated_year ==1999; qui replace sample=1 if campus==71905007& rated_year ==1998; qui replace sample=1 if campus==57905017& rated_year ==2005; qui replace sample=1 if campus==71905007& rated_year ==1994; qui replace sample=1 if campus==189901001& rated_year ==2003; qui replace sample=1 if campus==27903001& rated_year ==2006; qui replace sample=1 if campus==248902001& rated_year ==1995; qui replace sample=1 if campus==71905005& rated_year ==2003; qui replace sample=1 if campus==212910001& rated_year ==1999; qui replace sample=1 if campus==84901001& rated_year ==2008; qui replace sample=1 if campus==108903001& rated_year ==1997; qui replace sample=1 if campus==71905004& rated_year ==2008; qui replace sample=1 if campus==71905004& rated_year ==2007; qui replace sample=1 if campus==220902001& rated_year ==2008; qui replace sample=1 if campus==220905006& rated_year ==1996; qui replace sample=1 if campus==31901004& rated_year ==2008; qui replace sample=1 if campus==71905004& rated_year ==1995; qui replace sample=1 if campus==71905004& rated_year ==1994; qui replace sample=1 if campus==178913001& rated_year ==2002; qui replace sample=1 if campus==70908001& rated_year ==1995; qui replace sample=1 if campus==71905003& rated_year ==2002; qui replace sample=1 if campus==19903001& rated_year ==2005; qui replace sample=1 if campus==84901001& rated_year ==1995; qui replace sample=1 if campus==24901001& rated_year ==1995; qui replace sample=1 if campus==101910002& rated_year ==2004; qui replace sample=1 if campus==8901001& rated_year ==2001; qui replace sample=1 if campus==71905002& rated_year ==2002; qui replace sample=1 if campus==194903001& rated_year ==2004; qui replace sample=1 if campus==161921001& rated_year ==1995; qui replace sample=1 if campus==19912001& rated_year ==1995; qui replace sample=1 if campus==71905001& rated_year ==2005; qui replace sample=1 if campus==129902001& rated_year ==1997; qui replace sample=1 if campus==71905001& rated_year ==1999; qui replace sample=1 if campus==71905001& rated_year ==1998; qui replace sample=1 if campus==250905001& rated_year ==2008; qui replace sample=1 if campus==71905001& rated_year ==1994; qui replace sample=1 if campus==71906001& rated_year ==1996; qui replace sample=1 if campus==250907001& rated_year ==2007; qui replace sample=1 if campus==30906001& rated_year ==2003; qui replace sample=1 if campus==8901001& rated_year ==1995; qui replace sample=1 if campus==71904001& rated_year ==2008; qui replace sample=1 if campus==71904001& rated_year ==2005; qui replace sample=1 if campus==243905001& rated_year ==2001; qui replace sample=1 if campus==153903001& rated_year ==1998; qui replace sample=1 if campus==246907001& rated_year ==2008; qui replace sample=1 if campus==149901001& rated_year ==2006; qui replace sample=1 if campus==57905033& rated_year ==2004; qui replace sample=1 if campus==174904002& rated_year ==1997; qui replace sample=1 if campus==101912019& rated_year ==2001; qui replace sample=1 if campus==71903001& rated_year ==2008; qui replace sample=1 if campus==120905001& rated_year ==1998; qui replace sample=1 if campus==108910001& rated_year ==2001; qui replace sample=1 if campus==236902002& rated_year ==2004; qui replace sample=1 if campus==43910003& rated_year ==2002; qui replace sample=1 if campus==114901001& rated_year ==2005; qui replace sample=1 if campus==26901001& rated_year ==2003; qui replace sample=1 if campus==50902001& rated_year ==2007; qui replace sample=1 if campus==155901002& rated_year ==1998; qui replace sample=1 if campus==219903001& rated_year ==2006; qui replace sample=1 if campus==146904001& rated_year ==2000; qui replace sample=1 if campus==43911001& rated_year ==2003; qui replace sample=1 if campus==101917002& rated_year ==1999; qui replace sample=1 if campus==161910001& rated_year ==2002; qui replace sample=1 if campus==70912002& rated_year ==1997; qui replace sample=1 if campus==101912016& rated_year ==2008; qui replace sample=1 if campus==77902001& rated_year ==1996; qui replace sample=1 if campus==220902002& rated_year ==2007; qui replace sample=1 if campus==230906001& rated_year ==2007; qui replace sample=1 if campus==175902001& rated_year ==1998; qui replace sample=1 if campus==26901001& rated_year ==1999; qui replace sample=1 if campus==101912033& rated_year ==2005; qui replace sample=1 if campus==15907182& rated_year ==2000; qui replace sample=1 if campus==81902002& rated_year ==2002; qui replace sample=1 if campus==95903001& rated_year ==2003; qui replace sample=1 if campus==101907007& rated_year ==2006; qui replace sample=1 if campus==108904001& rated_year ==2002; qui replace sample=1 if campus==35901001& rated_year ==1998; qui replace sample=1 if campus==126911001& rated_year ==2005; qui replace sample=1 if campus==71902011& rated_year ==2006; qui replace sample=1 if campus==71902011& rated_year ==2004; qui replace sample=1 if campus==71902011& rated_year ==2003; qui replace sample=1 if campus==170902001& rated_year ==1998; qui replace sample=1 if campus==241903001& rated_year ==2008; qui replace sample=1 if campus==220915001& rated_year ==1998; qui replace sample=1 if campus==84911001& rated_year ==2007; qui replace sample=1 if campus==101912001& rated_year ==2001; qui replace sample=1 if campus==107902001& rated_year ==1995; qui replace sample=1 if campus==71902010& rated_year ==2003; qui replace sample=1 if campus==109904001& rated_year ==1998; qui replace sample=1 if campus==40901001& rated_year ==1995; qui replace sample=1 if campus==71902010& rated_year ==2000; qui replace sample=1 if campus==196903001& rated_year ==2008; qui replace sample=1 if campus==14906002& rated_year ==2008; qui replace sample=1 if campus==133904001& rated_year ==1995; qui replace sample=1 if campus==71902009& rated_year ==2005; qui replace sample=1 if campus==91902001& rated_year ==2007; qui replace sample=1 if campus==47901001& rated_year ==1995; qui replace sample=1 if campus==57905023& rated_year ==1995; qui replace sample=1 if campus==248901001& rated_year ==1999; qui replace sample=1 if campus==174908001& rated_year ==1994; qui replace sample=1 if campus==71908001& rated_year ==2001; qui replace sample=1 if campus==71902008& rated_year ==2002; qui replace sample=1 if campus==70908001& rated_year ==2000; qui replace sample=1 if campus==100905001& rated_year ==1997; qui replace sample=1 if campus==71902008& rated_year ==1995; qui replace sample=1 if campus==101911003& rated_year ==2003; qui replace sample=1 if campus==10901001& rated_year ==2000; qui replace sample=1 if campus==71902006& rated_year ==2003; qui replace sample=1 if campus==161914002& rated_year ==1998; qui replace sample=1 if campus==241906001& rated_year ==2004; qui replace sample=1 if campus==71902006& rated_year ==1997; qui replace sample=1 if campus==205903001& rated_year ==2007; qui replace sample=1 if campus==220902001& rated_year ==2006; qui replace sample=1 if campus==152910001& rated_year ==2004; qui replace sample=1 if campus==133901001& rated_year ==1995; qui replace sample=1 if campus==244903001& rated_year ==1994; qui replace sample=1 if campus==37904002& rated_year ==2004; qui replace sample=1 if campus==71902005& rated_year ==1995; qui replace sample=1 if campus==71902005& rated_year ==1994; qui replace sample=1 if campus==244903001& rated_year ==2006; qui replace sample=1 if campus==123914001& rated_year ==2003; qui replace sample=1 if campus==71902004& rated_year ==2002; qui replace sample=1 if campus==172905002& rated_year ==2000; qui replace sample=1 if campus==71902004& rated_year ==1999; qui replace sample=1 if campus==40902001& rated_year ==2003; qui replace sample=1 if campus==164901001& rated_year ==2003; qui replace sample=1 if campus==81902002& rated_year ==2008; qui replace sample=1 if campus==4901001& rated_year ==2003; qui replace sample=1 if campus==37904002& rated_year ==2005; qui replace sample=1 if campus==218901001& rated_year ==1998; qui replace sample=1 if campus==206901001& rated_year ==1995; qui replace sample=1 if campus==15915003& rated_year ==2004; qui replace sample=1 if campus==20907001& rated_year ==2003; qui replace sample=1 if campus==169902001& rated_year ==2007; qui replace sample=1 if campus==71902002& rated_year ==1999; qui replace sample=1 if campus==184908001& rated_year ==1996; qui replace sample=1 if campus==71902002& rated_year ==1995; qui replace sample=1 if campus==57905007& rated_year ==2003; qui replace sample=1 if campus==169902001& rated_year ==2003; qui replace sample=1 if campus==146902002& rated_year ==2007; qui replace sample=1 if campus==71902001& rated_year ==2000; qui replace sample=1 if campus==71902001& rated_year ==1999; qui replace sample=1 if campus==92907001& rated_year ==2002; qui replace sample=1 if campus==37901001& rated_year ==1998; qui replace sample=1 if campus==108914001& rated_year ==2003; qui replace sample=1 if campus==36901001& rated_year ==1997; qui replace sample=1 if campus==16901001& rated_year ==2003; qui replace sample=1 if campus==212905001& rated_year ==1997; qui replace sample=1 if campus==170908001& rated_year ==2004; qui replace sample=1 if campus==228901001& rated_year ==2005; qui replace sample=1 if campus==71901002& rated_year ==2004; qui replace sample=1 if campus==163904001& rated_year ==2002; qui replace sample=1 if campus==101920005& rated_year ==1999; qui replace sample=1 if campus==57914002& rated_year ==2001; qui replace sample=1 if campus==145902001& rated_year ==2002; qui replace sample=1 if campus==71901002& rated_year ==1994; qui replace sample=1 if campus==108910001& rated_year ==2003; qui replace sample=1 if campus==57905009& rated_year ==2001; qui replace sample=1 if campus==212902001& rated_year ==2001; qui replace sample=1 if campus==71901001& rated_year ==2000; qui replace sample=1 if campus==181901001& rated_year ==1997; qui replace sample=1 if campus==39902001& rated_year ==1998; qui replace sample=1 if campus==139905001& rated_year ==2001; qui replace sample=1 if campus==113905001& rated_year ==2005; qui replace sample=1 if campus==237904002& rated_year ==1998; qui replace sample=1 if campus==57905033& rated_year ==1995; qui replace sample=1 if campus==101912034& rated_year ==2004; qui replace sample=1 if campus==57905033& rated_year ==2000; qui replace sample=1 if campus==234902001& rated_year ==1996; qui replace sample=1 if campus==34901001& rated_year ==1998; qui replace sample=1 if campus==170902001& rated_year ==1999; qui replace sample=1 if campus==106901001& rated_year ==2007; qui replace sample=1 if campus==101915003& rated_year ==1999; qui replace sample=1 if campus==101912015& rated_year ==1994; qui replace sample=1 if campus==101902004& rated_year ==2005; qui replace sample=1 if campus==21902005& rated_year ==1995; qui replace sample=1 if campus==99903001& rated_year ==1995; qui replace sample=1 if campus==126907001& rated_year ==2001; qui replace sample=1 if campus==84910002& rated_year ==2007; qui replace sample=1 if campus==143901001& rated_year ==1998; qui replace sample=1 if campus==200904001& rated_year ==2003; qui replace sample=1 if campus==93904002& rated_year ==1996; qui replace sample=1 if campus==210902001& rated_year ==1995; qui replace sample=1 if campus==70915001& rated_year ==2001; qui replace sample=1 if campus==70915001& rated_year ==1998; qui replace sample=1 if campus==126901001& rated_year ==1997; qui replace sample=1 if campus==32902002& rated_year ==2006; qui replace sample=1 if campus==57905039& rated_year ==2006; qui replace sample=1 if campus==174903001& rated_year ==2002; qui replace sample=1 if campus==227901005& rated_year ==1998; qui replace sample=1 if campus==241904001& rated_year ==2006; qui replace sample=1 if campus==61906001& rated_year ==2001; qui replace sample=1 if campus==67902001& rated_year ==1995; qui replace sample=1 if campus==14906002& rated_year ==1998; qui replace sample=1 if campus==182902001& rated_year ==1996; qui replace sample=1 if campus==71902004& rated_year ==2003; qui replace sample=1 if campus==240903002& rated_year ==1995; qui replace sample=1 if campus==248901001& rated_year ==1995; qui replace sample=1 if campus==70912002& rated_year ==1994; qui replace sample=1 if campus==129905001& rated_year ==2004; qui replace sample=1 if campus==31903003& rated_year ==2000; qui replace sample=1 if campus==31912001& rated_year ==2005; qui replace sample=1 if campus==227901006& rated_year ==1997; qui replace sample=1 if campus==108911001& rated_year ==1999; qui replace sample=1 if campus==25909001& rated_year ==1994; qui replace sample=1 if campus==70910001& rated_year ==2004; qui replace sample=1 if campus==121906001& rated_year ==2008; qui replace sample=1 if campus==101903002& rated_year ==2004; qui replace sample=1 if campus==70910001& rated_year ==2000; qui replace sample=1 if campus==70910001& rated_year ==1999; qui replace sample=1 if campus==5902001& rated_year ==1997; qui replace sample=1 if campus==101915001& rated_year ==1996; qui replace sample=1 if campus==198903001& rated_year ==1998; qui replace sample=1 if campus==158906002& rated_year ==2008; qui replace sample=1 if campus==107910001& rated_year ==2003; qui replace sample=1 if campus==57909003& rated_year ==2003; qui replace sample=1 if campus==70905002& rated_year ==2002; qui replace sample=1 if campus==184908001& rated_year ==2004; qui replace sample=1 if campus==70908001& rated_year ==2001; qui replace sample=1 if campus==91906002& rated_year ==2005; qui replace sample=1 if campus==83901001& rated_year ==2002; qui replace sample=1 if campus==27903001& rated_year ==1996; qui replace sample=1 if campus==70907001& rated_year ==2007; qui replace sample=1 if campus==70907001& rated_year ==2006; qui replace sample=1 if campus==178902001& rated_year ==2006; qui replace sample=1 if campus==70907001& rated_year ==2003; qui replace sample=1 if campus==108902001& rated_year ==2004; qui replace sample=1 if campus==70907001& rated_year ==1998; qui replace sample=1 if campus==59901001& rated_year ==1996; qui replace sample=1 if campus==176902002& rated_year ==1996; qui replace sample=1 if campus==70905002& rated_year ==2000; qui replace sample=1 if campus==175907001& rated_year ==2001; qui replace sample=1 if campus==15908001& rated_year ==1995; qui replace sample=1 if campus==116909001& rated_year ==2002; qui replace sample=1 if campus==71902002& rated_year ==1998; qui replace sample=1 if campus==70905002& rated_year ==1994; qui replace sample=1 if campus==70903002& rated_year ==2008; qui replace sample=1 if campus==70903002& rated_year ==2005; qui replace sample=1 if campus==7902001& rated_year ==1999; qui replace sample=1 if campus==101919001& rated_year ==1998; qui replace sample=1 if campus==108904003& rated_year ==1999; qui replace sample=1 if campus==101912026& rated_year ==2004; qui replace sample=1 if campus==74903001& rated_year ==1999; qui replace sample=1 if campus==43914001& rated_year ==1994; qui replace sample=1 if campus==240903002& rated_year ==1998; qui replace sample=1 if campus==213901001& rated_year ==2007; qui replace sample=1 if campus==164901001& rated_year ==2004; qui replace sample=1 if campus==20904001& rated_year ==2007; qui replace sample=1 if campus==226906001& rated_year ==2006; qui replace sample=1 if campus==174902001& rated_year ==2007; qui replace sample=1 if campus==70912002& rated_year ==1998; qui replace sample=1 if campus==101906001& rated_year ==1998; qui replace sample=1 if campus==152909001& rated_year ==2002; qui replace sample=1 if campus==140908001& rated_year ==2006; qui replace sample=1 if campus==181901001& rated_year ==2005; qui replace sample=1 if campus==19906001& rated_year ==2007; qui replace sample=1 if campus==101919001& rated_year ==2007; qui replace sample=1 if campus==19901001& rated_year ==2008; qui replace sample=1 if campus==5902001& rated_year ==1999; qui replace sample=1 if campus==31916001& rated_year ==1998; qui replace sample=1 if campus==101912017& rated_year ==2005; qui replace sample=1 if campus==108907001& rated_year ==2000; qui replace sample=1 if campus==57905034& rated_year ==2007; qui replace sample=1 if campus==105906001& rated_year ==1994; qui replace sample=1 if campus==74903001& rated_year ==1997; qui replace sample=1 if campus==10902001& rated_year ==1997; qui replace sample=1 if campus==84911001& rated_year ==2001; qui replace sample=1 if campus==15909001& rated_year ==2007; qui replace sample=1 if campus==100903002& rated_year ==2007; qui replace sample=1 if campus==112901002& rated_year ==2000; qui replace sample=1 if campus==123914001& rated_year ==2006; qui replace sample=1 if campus==187907002& rated_year ==2002; qui replace sample=1 if campus==247901001& rated_year ==2000; qui replace sample=1 if campus==15910001& rated_year ==1998; qui replace sample=1 if campus==227901007& rated_year ==2008; qui replace sample=1 if campus==147903002& rated_year ==1995; qui replace sample=1 if campus==176901001& rated_year ==2003; qui replace sample=1 if campus==136901001& rated_year ==1994; qui replace sample=1 if campus==101915003& rated_year ==2006; qui replace sample=1 if campus==117904001& rated_year ==2004; qui replace sample=1 if campus==178912001& rated_year ==1999; qui replace sample=1 if campus==31913001& rated_year ==2008; qui replace sample=1 if campus==30903001& rated_year ==2005; qui replace sample=1 if campus==27904001& rated_year ==2005; qui replace sample=1 if campus==205906001& rated_year ==2005; qui replace sample=1 if campus==149901001& rated_year ==2001; qui replace sample=1 if campus==101912014& rated_year ==2006; qui replace sample=1 if campus==156902001& rated_year ==2005; qui replace sample=1 if campus==101912012& rated_year ==1994; qui replace sample=1 if campus==57914002& rated_year ==2002; qui replace sample=1 if campus==249906001& rated_year ==2007; qui replace sample=1 if campus==6902001& rated_year ==2006; qui replace sample=1 if campus==101919002& rated_year ==2000; qui replace sample=1 if campus==49905001& rated_year ==1997; qui replace sample=1 if campus==220917001& rated_year ==2002; qui replace sample=1 if campus==240901003& rated_year ==1997; qui replace sample=1 if campus==19907002& rated_year ==2008; qui replace sample=1 if campus==178902001& rated_year ==1998; qui replace sample=1 if campus==221901002& rated_year ==1996; qui replace sample=1 if campus==15910004& rated_year ==2002; qui replace sample=1 if campus==108903001& rated_year ==1998; qui replace sample=1 if campus==20907001& rated_year ==2000; qui replace sample=1 if campus==34903001& rated_year ==2006; qui replace sample=1 if campus==116903001& rated_year ==1997; qui replace sample=1 if campus==101912010& rated_year ==2003; qui replace sample=1 if campus==101915002& rated_year ==1994; qui replace sample=1 if campus==84903001& rated_year ==1996; qui replace sample=1 if campus==119902001& rated_year ==2002; qui replace sample=1 if campus==152909001& rated_year ==2003; qui replace sample=1 if campus==84910001& rated_year ==2008; qui replace sample=1 if campus==15910004& rated_year ==1999; qui replace sample=1 if campus==101912005& rated_year ==1994; qui replace sample=1 if campus==1903001& rated_year ==1995; qui replace sample=1 if campus==230902002& rated_year ==2008; qui replace sample=1 if campus==61912001& rated_year ==2007; qui replace sample=1 if campus==126911001& rated_year ==2004; qui replace sample=1 if campus==187907002& rated_year ==1996; qui replace sample=1 if campus==8901001& rated_year ==2005; qui replace sample=1 if campus==31909001& rated_year ==2004; qui replace sample=1 if campus==79907001& rated_year ==1997; qui replace sample=1 if campus==202905002& rated_year ==1997; qui replace sample=1 if campus==68901003& rated_year ==2004; qui replace sample=1 if campus==187904001& rated_year ==2000; qui replace sample=1 if campus==210902001& rated_year ==2000; qui replace sample=1 if campus==3907001& rated_year ==2000; qui replace sample=1 if campus==71902003& rated_year ==2008; qui replace sample=1 if campus==12901001& rated_year ==1998; qui replace sample=1 if campus==68901002& rated_year ==2000; qui replace sample=1 if campus==71904001& rated_year ==1994; qui replace sample=1 if campus==123914001& rated_year ==1998; qui replace sample=1 if campus==68901002& rated_year ==1995; qui replace sample=1 if campus==68901002& rated_year ==1994; qui replace sample=1 if campus==79910001& rated_year ==1996; qui replace sample=1 if campus==15907008& rated_year ==1994; qui replace sample=1 if campus==101912002& rated_year ==1996; qui replace sample=1 if campus==237904002& rated_year ==1995; qui replace sample=1 if campus==74917001& rated_year ==2000; qui replace sample=1 if campus==15908002& rated_year ==2001; qui replace sample=1 if campus==221901001& rated_year ==2005; qui replace sample=1 if campus==247904001& rated_year ==1998; qui replace sample=1 if campus==146907001& rated_year ==2004; qui replace sample=1 if campus==8901001& rated_year ==1997; qui replace sample=1 if campus==57905022& rated_year ==1999; qui replace sample=1 if campus==150901001& rated_year ==2003; qui replace sample=1 if campus==71908001& rated_year ==2006; qui replace sample=1 if campus==92901001& rated_year ==2008; qui replace sample=1 if campus==102905001& rated_year ==2006; qui replace sample=1 if campus==113905001& rated_year ==1999; qui replace sample=1 if campus==67903001& rated_year ==2008; qui replace sample=1 if campus==67903001& rated_year ==2007; qui replace sample=1 if campus==46901001& rated_year ==2001; qui replace sample=1 if campus==205901001& rated_year ==2004; qui replace sample=1 if campus==101920005& rated_year ==1996; qui replace sample=1 if campus==84902001& rated_year ==1999; qui replace sample=1 if campus==21901001& rated_year ==2000; qui replace sample=1 if campus==67903001& rated_year ==1994; qui replace sample=1 if campus==11901001& rated_year ==2005; qui replace sample=1 if campus==190903001& rated_year ==2005; qui replace sample=1 if campus==43901001& rated_year ==2008; qui replace sample=1 if campus==71902004& rated_year ==2000; qui replace sample=1 if campus==169902001& rated_year ==2001; qui replace sample=1 if campus==67902001& rated_year ==2003; qui replace sample=1 if campus==25909001& rated_year ==1996; qui replace sample=1 if campus==220917001& rated_year ==2003; qui replace sample=1 if campus==169902001& rated_year ==1994; qui replace sample=1 if campus==178914001& rated_year ==1997; qui replace sample=1 if campus==101916001& rated_year ==2002; qui replace sample=1 if campus==218901001& rated_year ==2006; qui replace sample=1 if campus==161903001& rated_year ==1997; qui replace sample=1 if campus==66903002& rated_year ==2008; qui replace sample=1 if campus==57905017& rated_year ==1994; qui replace sample=1 if campus==66903002& rated_year ==2003; qui replace sample=1 if campus==102903002& rated_year ==1994; qui replace sample=1 if campus==77902001& rated_year ==2000; qui replace sample=1 if campus==66903002& rated_year ==1999; qui replace sample=1 if campus==71902006& rated_year ==2001; qui replace sample=1 if campus==66903002& rated_year ==1997; qui replace sample=1 if campus==33902001& rated_year ==1994; qui replace sample=1 if campus==66903002& rated_year ==1994; qui replace sample=1 if campus==144902001& rated_year ==1997; qui replace sample=1 if campus==45903001& rated_year ==2004; qui replace sample=1 if campus==182903001& rated_year ==2000; qui replace sample=1 if campus==66902001& rated_year ==2007; qui replace sample=1 if campus==92901001& rated_year ==2002; qui replace sample=1 if campus==153903001& rated_year ==1997; qui replace sample=1 if campus==157901001& rated_year ==1996; qui replace sample=1 if campus==249901001& rated_year ==1997; qui replace sample=1 if campus==220905010& rated_year ==2003; qui replace sample=1 if campus==66902001& rated_year ==1994; qui replace sample=1 if campus==15910001& rated_year ==2002; qui replace sample=1 if campus==51901001& rated_year ==2000; qui replace sample=1 if campus==220905009& rated_year ==1996; qui replace sample=1 if campus==66901001& rated_year ==2002; qui replace sample=1 if campus==66901001& rated_year ==1999; qui replace sample=1 if campus==35902001& rated_year ==1998; qui replace sample=1 if campus==186902001& rated_year ==2003; qui replace sample=1 if campus==108914001& rated_year ==2007; qui replace sample=1 if campus==46901001& rated_year ==1994; qui replace sample=1 if campus==71902010& rated_year ==2005; qui replace sample=1 if campus==125903001& rated_year ==2000; qui replace sample=1 if campus==66902001& rated_year ==2008; qui replace sample=1 if campus==123914001& rated_year ==1995; qui replace sample=1 if campus==189901001& rated_year ==1995; qui replace sample=1 if campus==101903001& rated_year ==1997; qui replace sample=1 if campus==65901001& rated_year ==1995; qui replace sample=1 if campus==70908001& rated_year ==2007; qui replace sample=1 if campus==169901001& rated_year ==1999; qui replace sample=1 if campus==30901001& rated_year ==2004; qui replace sample=1 if campus==50902001& rated_year ==2003; qui replace sample=1 if campus==67902001& rated_year ==1996; qui replace sample=1 if campus==64901001& rated_year ==1997; qui replace sample=1 if campus==243905004& rated_year ==2001; qui replace sample=1 if campus==84910001& rated_year ==2006; qui replace sample=1 if campus==163904001& rated_year ==1996; qui replace sample=1 if campus==9901001& rated_year ==2000; qui replace sample=1 if campus==226906001& rated_year ==2003; qui replace sample=1 if campus==215901001& rated_year ==1996; qui replace sample=1 if campus==202905002& rated_year ==1994; qui replace sample=1 if campus==63903001& rated_year ==2004; qui replace sample=1 if campus==63903001& rated_year ==2003; qui replace sample=1 if campus==152910001& rated_year ==2008; qui replace sample=1 if campus==57905018& rated_year ==1996; qui replace sample=1 if campus==15905002& rated_year ==1999; qui replace sample=1 if campus==62904001& rated_year ==2006; qui replace sample=1 if campus==62904001& rated_year ==2005; qui replace sample=1 if campus==184902001& rated_year ==2002; qui replace sample=1 if campus==57904001& rated_year ==1999; qui replace sample=1 if campus==79906001& rated_year ==2006; qui replace sample=1 if campus==62904001& rated_year ==1994; qui replace sample=1 if campus==108916001& rated_year ==2002; qui replace sample=1 if campus==246909004& rated_year ==1998; qui replace sample=1 if campus==62903001& rated_year ==2004; qui replace sample=1 if campus==101912010& rated_year ==1994; qui replace sample=1 if campus==62903001& rated_year ==1997; qui replace sample=1 if campus==15915002& rated_year ==1995; qui replace sample=1 if campus==62903001& rated_year ==1994; qui replace sample=1 if campus==205907001& rated_year ==2000; qui replace sample=1 if campus==227901007& rated_year ==2001; qui replace sample=1 if campus==181906001& rated_year ==2003; qui replace sample=1 if campus==20902001& rated_year ==2004; qui replace sample=1 if campus==54903001& rated_year ==2008; qui replace sample=1 if campus==110907001& rated_year ==2001; qui replace sample=1 if campus==145911002& rated_year ==1998; qui replace sample=1 if campus==57905039& rated_year ==2008; qui replace sample=1 if campus==1909001& rated_year ==2006; qui replace sample=1 if campus==130901001& rated_year ==2006; qui replace sample=1 if campus==220915001& rated_year ==2003; qui replace sample=1 if campus==101912028& rated_year ==1994; qui replace sample=1 if campus==81902002& rated_year ==1998; qui replace sample=1 if campus==210902001& rated_year ==2005; qui replace sample=1 if campus==79901001& rated_year ==2007; qui replace sample=1 if campus==108913001& rated_year ==2007; qui replace sample=1 if campus==57909004& rated_year ==1997; qui replace sample=1 if campus==249905001& rated_year ==1996; qui replace sample=1 if campus==57913001& rated_year ==2001; qui replace sample=1 if campus==62901001& rated_year ==2003; qui replace sample=1 if campus==101912008& rated_year ==1996; qui replace sample=1 if campus==71907001& rated_year ==2007; qui replace sample=1 if campus==166901002& rated_year ==1998; qui replace sample=1 if campus==152903001& rated_year ==2000; qui replace sample=1 if campus==101902004& rated_year ==2001; qui replace sample=1 if campus==57905037& rated_year ==2006; qui replace sample=1 if campus==89901001& rated_year ==2004; qui replace sample=1 if campus==187907002& rated_year ==2005; qui replace sample=1 if campus==229901001& rated_year ==2008; qui replace sample=1 if campus==3904001& rated_year ==1997; qui replace sample=1 if campus==91905001& rated_year ==2005; qui replace sample=1 if campus==184902001& rated_year ==1998; qui replace sample=1 if campus==161921001& rated_year ==2000; qui replace sample=1 if campus==61912001& rated_year ==2008; qui replace sample=1 if campus==183901001& rated_year ==2000; qui replace sample=1 if campus==178909001& rated_year ==2004; qui replace sample=1 if campus==61912001& rated_year ==2003; qui replace sample=1 if campus==249901001& rated_year ==2003; qui replace sample=1 if campus==15905002& rated_year ==1998; qui replace sample=1 if campus==105905001& rated_year ==1995; qui replace sample=1 if campus==161908002& rated_year ==2006; qui replace sample=1 if campus==161908002& rated_year ==2003; qui replace sample=1 if campus==101916001& rated_year ==1996; qui replace sample=1 if campus==178915001& rated_year ==2006; qui replace sample=1 if campus==70910001& rated_year ==1994; qui replace sample=1 if campus==37901001& rated_year ==2008; qui replace sample=1 if campus==10901001& rated_year ==2005; qui replace sample=1 if campus==82903001& rated_year ==2006; qui replace sample=1 if campus==71905007& rated_year ==2000; qui replace sample=1 if campus==212905003& rated_year ==2006; qui replace sample=1 if campus==20904001& rated_year ==2000; qui replace sample=1 if campus==161919001& rated_year ==2001; qui replace sample=1 if campus==57905018& rated_year ==2006; qui replace sample=1 if campus==94904001& rated_year ==1995; qui replace sample=1 if campus==241904001& rated_year ==1998; qui replace sample=1 if campus==61911001& rated_year ==2004; qui replace sample=1 if campus==81905002& rated_year ==2006; qui replace sample=1 if campus==227901010& rated_year ==2002; qui replace sample=1 if campus==1908002& rated_year ==2008; qui replace sample=1 if campus==200902001& rated_year ==1999; qui replace sample=1 if campus==61911001& rated_year ==1998; qui replace sample=1 if campus==100904001& rated_year ==2002; qui replace sample=1 if campus==20902001& rated_year ==1999; qui replace sample=1 if campus==210901001& rated_year ==2006; qui replace sample=1 if campus==170902005& rated_year ==2001; qui replace sample=1 if campus==57905022& rated_year ==2002; qui replace sample=1 if campus==101912006& rated_year ==2005; qui replace sample=1 if campus==54902001& rated_year ==1994; qui replace sample=1 if campus==164901001& rated_year ==2002; qui replace sample=1 if campus==158901001& rated_year ==1998; qui replace sample=1 if campus==175903001& rated_year ==2006; qui replace sample=1 if campus==14905001& rated_year ==2006; qui replace sample=1 if campus==54902001& rated_year ==2008; qui replace sample=1 if campus==164901001& rated_year ==2007; qui replace sample=1 if campus==169902001& rated_year ==2004; qui replace sample=1 if campus==45902001& rated_year ==1994; qui replace sample=1 if campus==201910002& rated_year ==1998; qui replace sample=1 if campus==43902001& rated_year ==1999; qui replace sample=1 if campus==119902001& rated_year ==2005; qui replace sample=1 if campus==171901001& rated_year ==1997; qui replace sample=1 if campus==105906001& rated_year ==2000; qui replace sample=1 if campus==57912003& rated_year ==2008; qui replace sample=1 if campus==79901001& rated_year ==1994; qui replace sample=1 if campus==12901001& rated_year ==1999; qui replace sample=1 if campus==15910001& rated_year ==1999; qui replace sample=1 if campus==19906001& rated_year ==1996; qui replace sample=1 if campus==101917001& rated_year ==1999; qui replace sample=1 if campus==92902002& rated_year ==1995; qui replace sample=1 if campus==71904001& rated_year ==2004; qui replace sample=1 if campus==13905001& rated_year ==2008; qui replace sample=1 if campus==226905001& rated_year ==2007; qui replace sample=1 if campus==182902001& rated_year ==1998; qui replace sample=1 if campus==57905097& rated_year ==1996; qui replace sample=1 if campus==61906001& rated_year ==2007; qui replace sample=1 if campus==108916001& rated_year ==2004; qui replace sample=1 if campus==61906001& rated_year ==2004; qui replace sample=1 if campus==220912001& rated_year ==2003; qui replace sample=1 if campus==15913001& rated_year ==1999; qui replace sample=1 if campus==113903002& rated_year ==2006; qui replace sample=1 if campus==61906001& rated_year ==1995; qui replace sample=1 if campus==107905001& rated_year ==2000; qui replace sample=1 if campus==61905001& rated_year ==2003; qui replace sample=1 if campus==163908001& rated_year ==2004; qui replace sample=1 if campus==226906001& rated_year ==2002; qui replace sample=1 if campus==39903001& rated_year ==1997; qui replace sample=1 if campus==8901001& rated_year ==2006; qui replace sample=1 if campus==61905001& rated_year ==1994; qui replace sample=1 if campus==57905009& rated_year ==1994; qui replace sample=1 if campus==101912004& rated_year ==2005; qui replace sample=1 if campus==20906002& rated_year ==2007; qui replace sample=1 if campus==144901001& rated_year ==2002; qui replace sample=1 if campus==152906001& rated_year ==1995; qui replace sample=1 if campus==61911001& rated_year ==1997; qui replace sample=1 if campus==139911002& rated_year ==2000; qui replace sample=1 if campus==60902001& rated_year ==1994; qui replace sample=1 if campus==230902002& rated_year ==1998; qui replace sample=1 if campus==105902001& rated_year ==2002; qui replace sample=1 if campus==175902001& rated_year ==1997; qui replace sample=1 if campus==174908001& rated_year ==2004; qui replace sample=1 if campus==205903001& rated_year ==1999; qui replace sample=1 if campus==170902003& rated_year ==1996; qui replace sample=1 if campus==145902001& rated_year ==1999; qui replace sample=1 if campus==57905037& rated_year ==2003; qui replace sample=1 if campus==125905001& rated_year ==1995; qui replace sample=1 if campus==182902001& rated_year ==2007; qui replace sample=1 if campus==101914002& rated_year ==1997; qui replace sample=1 if campus==252903001& rated_year ==1995; qui replace sample=1 if campus==91913001& rated_year ==1995; qui replace sample=1 if campus==200904001& rated_year ==1999; qui replace sample=1 if campus==34903001& rated_year ==1995; qui replace sample=1 if campus==14905001& rated_year ==2001; qui replace sample=1 if campus==15915007& rated_year ==2007; qui replace sample=1 if campus==184902001& rated_year ==1994; qui replace sample=1 if campus==1903001& rated_year ==1998; qui replace sample=1 if campus==57905021& rated_year ==2002; qui replace sample=1 if campus==57905001& rated_year ==2008; qui replace sample=1 if campus==129905001& rated_year ==2007; qui replace sample=1 if campus==101919002& rated_year ==1998; qui replace sample=1 if campus==246911001& rated_year ==2005; qui replace sample=1 if campus==61902004& rated_year ==2007; qui replace sample=1 if campus==101912002& rated_year ==2007; qui replace sample=1 if campus==67902001& rated_year ==2006; qui replace sample=1 if campus==61902004& rated_year ==2004; qui replace sample=1 if campus==85902001& rated_year ==1999; qui replace sample=1 if campus==61902004& rated_year ==2000; qui replace sample=1 if campus==71901001& rated_year ==2001; qui replace sample=1 if campus==187904001& rated_year ==2008; qui replace sample=1 if campus==38901001& rated_year ==2005; qui replace sample=1 if campus==182902001& rated_year ==2001; qui replace sample=1 if campus==74917001& rated_year ==2004; qui replace sample=1 if campus==61902002& rated_year ==1997; qui replace sample=1 if campus==61902002& rated_year ==1995; qui replace sample=1 if campus==61902001& rated_year ==2003; qui replace sample=1 if campus==61902001& rated_year ==2001; qui replace sample=1 if campus==220915001& rated_year ==2008; qui replace sample=1 if campus==101903002& rated_year ==1995; qui replace sample=1 if campus==136901001& rated_year ==1997; qui replace sample=1 if campus==1904001& rated_year ==2001; qui replace sample=1 if campus==116903001& rated_year ==2005; qui replace sample=1 if campus==79907006& rated_year ==1997; qui replace sample=1 if campus==227901010& rated_year ==2003; qui replace sample=1 if campus==72903001& rated_year ==1994; qui replace sample=1 if campus==196903001& rated_year ==2005; qui replace sample=1 if campus==212904002& rated_year ==1995; qui replace sample=1 if campus==188901005& rated_year ==2005; qui replace sample=1 if campus==91905001& rated_year ==2002; qui replace sample=1 if campus==109911001& rated_year ==2006; qui replace sample=1 if campus==7902001& rated_year ==2003; qui replace sample=1 if campus==129903001& rated_year ==1994; qui replace sample=1 if campus==101919001& rated_year ==1999; qui replace sample=1 if campus==101903002& rated_year ==1994; qui replace sample=1 if campus==101902002& rated_year ==1999; qui replace sample=1 if campus==174906001& rated_year ==2008; qui replace sample=1 if campus==196903001& rated_year ==1999; qui replace sample=1 if campus==177902001& rated_year ==2000; qui replace sample=1 if campus==126905001& rated_year ==1994; qui replace sample=1 if campus==31911001& rated_year ==2006; qui replace sample=1 if campus==15915007& rated_year ==2004; qui replace sample=1 if campus==84910003& rated_year ==2003; qui replace sample=1 if campus==61901003& rated_year ==2001; qui replace sample=1 if campus==61901003& rated_year ==1998; qui replace sample=1 if campus==146904001& rated_year ==2002; qui replace sample=1 if campus==57905015& rated_year ==2008; qui replace sample=1 if campus==246909001& rated_year ==1995; qui replace sample=1 if campus==153903001& rated_year ==1994; qui replace sample=1 if campus==116902001& rated_year ==1996; qui replace sample=1 if campus==220902001& rated_year ==2004; qui replace sample=1 if campus==43905001& rated_year ==1998; qui replace sample=1 if campus==152907001& rated_year ==1995; qui replace sample=1 if campus==161907001& rated_year ==2002; qui replace sample=1 if campus==141902001& rated_year ==2007; qui replace sample=1 if campus==116906001& rated_year ==2000; qui replace sample=1 if campus==117903001& rated_year ==2004; qui replace sample=1 if campus==18907001& rated_year ==2000; qui replace sample=1 if campus==247906001& rated_year ==1994; qui replace sample=1 if campus==85902001& rated_year ==1997; qui replace sample=1 if campus==212903001& rated_year ==2002; qui replace sample=1 if campus==188901004& rated_year ==1995; qui replace sample=1 if campus==161910001& rated_year ==2006; qui replace sample=1 if campus==99903001& rated_year ==2002; qui replace sample=1 if campus==91906002& rated_year ==1997; qui replace sample=1 if campus==58906001& rated_year ==1998; qui replace sample=1 if campus==167901001& rated_year ==2001; qui replace sample=1 if campus==220907001& rated_year ==2006; qui replace sample=1 if campus==91903001& rated_year ==2007; qui replace sample=1 if campus==116916001& rated_year ==2006; qui replace sample=1 if campus==26903002& rated_year ==2006; qui replace sample=1 if campus==170908001& rated_year ==1999; qui replace sample=1 if campus==15904001& rated_year ==1997; qui replace sample=1 if campus==191901002& rated_year ==2002; qui replace sample=1 if campus==60902001& rated_year ==2004; qui replace sample=1 if campus==60902001& rated_year ==2003; qui replace sample=1 if campus==60902001& rated_year ==1998; qui replace sample=1 if campus==70910001& rated_year ==2007; qui replace sample=1 if campus==101912006& rated_year ==2000; qui replace sample=1 if campus==59901001& rated_year ==2008; qui replace sample=1 if campus==82903001& rated_year ==1996; qui replace sample=1 if campus==161903001& rated_year ==2004; qui replace sample=1 if campus==226903002& rated_year ==1999; qui replace sample=1 if campus==108904001& rated_year ==1996; qui replace sample=1 if campus==102904002& rated_year ==2001; qui replace sample=1 if campus==98901001& rated_year ==1998; qui replace sample=1 if campus==61902001& rated_year ==1996; qui replace sample=1 if campus==187904001& rated_year ==1995; qui replace sample=1 if campus==204904001& rated_year ==2001; qui replace sample=1 if campus==127904001& rated_year ==2004; qui replace sample=1 if campus==15904002& rated_year ==1995; qui replace sample=1 if campus==220912001& rated_year ==2000; qui replace sample=1 if campus==58906001& rated_year ==2007; qui replace sample=1 if campus==116901001& rated_year ==2007; qui replace sample=1 if campus==113903002& rated_year ==2008; qui replace sample=1 if campus==161923001& rated_year ==2004; qui replace sample=1 if campus==152903001& rated_year ==1996; qui replace sample=1 if campus==58906001& rated_year ==1997; qui replace sample=1 if campus==101914005& rated_year ==1995; qui replace sample=1 if campus==220908001& rated_year ==1995; qui replace sample=1 if campus==184909001& rated_year ==2001; qui replace sample=1 if campus==101912001& rated_year ==1995; qui replace sample=1 if campus==91902001& rated_year ==1997; qui replace sample=1 if campus==61911001& rated_year ==2002; qui replace sample=1 if campus==240901001& rated_year ==2007; qui replace sample=1 if campus==246908001& rated_year ==2008; qui replace sample=1 if campus==212903001& rated_year ==2001; qui replace sample=1 if campus==204901001& rated_year ==2004; qui replace sample=1 if campus==19901001& rated_year ==2007; qui replace sample=1 if campus==123910001& rated_year ==2004; qui replace sample=1 if campus==71902008& rated_year ==2007; qui replace sample=1 if campus==101911003& rated_year ==2007; qui replace sample=1 if campus==220905001& rated_year ==1995; qui replace sample=1 if campus==121906001& rated_year ==2006; qui replace sample=1 if campus==100903002& rated_year ==2004; qui replace sample=1 if campus==101912006& rated_year ==1994; qui replace sample=1 if campus==205905001& rated_year ==2002; qui replace sample=1 if campus==47902001& rated_year ==2007; qui replace sample=1 if campus==95903001& rated_year ==2000; qui replace sample=1 if campus==57920002& rated_year ==2002; qui replace sample=1 if campus==57920002& rated_year ==2000; qui replace sample=1 if campus==57920002& rated_year ==1998; qui replace sample=1 if campus==40902001& rated_year ==2002; qui replace sample=1 if campus==178913001& rated_year ==2004; qui replace sample=1 if campus==101920001& rated_year ==2008; qui replace sample=1 if campus==45905002& rated_year ==2002; qui replace sample=1 if campus==134901001& rated_year ==1998; qui replace sample=1 if campus==146907001& rated_year ==1996; qui replace sample=1 if campus==226903002& rated_year ==2003; qui replace sample=1 if campus==191901002& rated_year ==1996; qui replace sample=1 if campus==100903002& rated_year ==2006; qui replace sample=1 if campus==204904001& rated_year ==1999; qui replace sample=1 if campus==100907001& rated_year ==2001; qui replace sample=1 if campus==234902001& rated_year ==2007; qui replace sample=1 if campus==91917001& rated_year ==2004; qui replace sample=1 if campus==176902002& rated_year ==1999; qui replace sample=1 if campus==229903001& rated_year ==1997; qui replace sample=1 if campus==57906001& rated_year ==1994; qui replace sample=1 if campus==183901001& rated_year ==2002; qui replace sample=1 if campus==125902001& rated_year ==1998; qui replace sample=1 if campus==1907001& rated_year ==1996; qui replace sample=1 if campus==57905023& rated_year ==1994; qui replace sample=1 if campus==175903001& rated_year ==1995; qui replace sample=1 if campus==189901001& rated_year ==2007; qui replace sample=1 if campus==58906001& rated_year ==1995; qui replace sample=1 if campus==5902001& rated_year ==2003; qui replace sample=1 if campus==247904001& rated_year ==2002; qui replace sample=1 if campus==14906001& rated_year ==2004; qui replace sample=1 if campus==92902002& rated_year ==2001; qui replace sample=1 if campus==101912033& rated_year ==2002; qui replace sample=1 if campus==190903001& rated_year ==2008; qui replace sample=1 if campus==178912001& rated_year ==2000; qui replace sample=1 if campus==250902001& rated_year ==1996; qui replace sample=1 if campus==71902008& rated_year ==1996; qui replace sample=1 if campus==227901004& rated_year ==2007; qui replace sample=1 if campus==50910001& rated_year ==2007; qui replace sample=1 if campus==161920001& rated_year ==2007; qui replace sample=1 if campus==117903001& rated_year ==1999; qui replace sample=1 if campus==176901001& rated_year ==2000; qui replace sample=1 if campus==31916005& rated_year ==2008; qui replace sample=1 if campus==45902001& rated_year ==2004; qui replace sample=1 if campus==71902006& rated_year ==1994; qui replace sample=1 if campus==143901001& rated_year ==2004; qui replace sample=1 if campus==241904001& rated_year ==2000; qui replace sample=1 if campus==105905001& rated_year ==2003; qui replace sample=1 if campus==212909001& rated_year ==2002; qui replace sample=1 if campus==152908001& rated_year ==1999; qui replace sample=1 if campus==170908001& rated_year ==2006; qui replace sample=1 if campus==221911001& rated_year ==2002; qui replace sample=1 if campus==19912001& rated_year ==2003; qui replace sample=1 if campus==84910002& rated_year ==1995; qui replace sample=1 if campus==110907001& rated_year ==2002; qui replace sample=1 if campus==94901001& rated_year ==2004; qui replace sample=1 if campus==31914001& rated_year ==2005; qui replace sample=1 if campus==230906001& rated_year ==2005; qui replace sample=1 if campus==161906002& rated_year ==2004; qui replace sample=1 if campus==161906002& rated_year ==2002; qui replace sample=1 if campus==116902001& rated_year ==1997; qui replace sample=1 if campus==227910001& rated_year ==1996; qui replace sample=1 if campus==108909001& rated_year ==1999; qui replace sample=1 if campus==249906001& rated_year ==1995; qui replace sample=1 if campus==252901001& rated_year ==2000; qui replace sample=1 if campus==15907002& rated_year ==1998; qui replace sample=1 if campus==182902001& rated_year ==2008; qui replace sample=1 if campus==15911001& rated_year ==1995; qui replace sample=1 if campus==31901001& rated_year ==2002; qui replace sample=1 if campus==19902002& rated_year ==2005; qui replace sample=1 if campus==101912025& rated_year ==2001; qui replace sample=1 if campus==93904002& rated_year ==1999; qui replace sample=1 if campus==19906001& rated_year ==2003; qui replace sample=1 if campus==31912001& rated_year ==1998; qui replace sample=1 if campus==61906001& rated_year ==1994; qui replace sample=1 if campus==102904002& rated_year ==2002; qui replace sample=1 if campus==21901001& rated_year ==1998; qui replace sample=1 if campus==57905038& rated_year ==1996; qui replace sample=1 if campus==220905009& rated_year ==1998; qui replace sample=1 if campus==57914004& rated_year ==2000; qui replace sample=1 if campus==178903001& rated_year ==2003; qui replace sample=1 if campus==57914004& rated_year ==1998; qui replace sample=1 if campus==7902001& rated_year ==2000; qui replace sample=1 if campus==57914004& rated_year ==1994; qui replace sample=1 if campus==133901001& rated_year ==2001; qui replace sample=1 if campus==205905001& rated_year ==1994; qui replace sample=1 if campus==57914003& rated_year ==2004; qui replace sample=1 if campus==57914003& rated_year ==2003; qui replace sample=1 if campus==57905038& rated_year ==1999; qui replace sample=1 if campus==57914003& rated_year ==1994; qui replace sample=1 if campus==251902001& rated_year ==1996; qui replace sample=1 if campus==101907005& rated_year ==1997; qui replace sample=1 if campus==102903002& rated_year ==2005; qui replace sample=1 if campus==246909001& rated_year ==1999; qui replace sample=1 if campus==252903001& rated_year ==2005; qui replace sample=1 if campus==101914001& rated_year ==2005; qui replace sample=1 if campus==90904001& rated_year ==2003; qui replace sample=1 if campus==57914001& rated_year ==2008; qui replace sample=1 if campus==57914001& rated_year ==2007; qui replace sample=1 if campus==49907001& rated_year ==1999; qui replace sample=1 if campus==57914001& rated_year ==2003; qui replace sample=1 if campus==220905002& rated_year ==2003; qui replace sample=1 if campus==112908001& rated_year ==1994; qui replace sample=1 if campus==57914001& rated_year ==1995; qui replace sample=1 if campus==57914001& rated_year ==1994; qui replace sample=1 if campus==84908001& rated_year ==1995; qui replace sample=1 if campus==116906001& rated_year ==2002; qui replace sample=1 if campus==108906006& rated_year ==2005; qui replace sample=1 if campus==108910001& rated_year ==2002; qui replace sample=1 if campus==57913001& rated_year ==1998; qui replace sample=1 if campus==1907001& rated_year ==2006; qui replace sample=1 if campus==79907004& rated_year ==2000; qui replace sample=1 if campus==175903001& rated_year ==2005; qui replace sample=1 if campus==234904001& rated_year ==1994; qui replace sample=1 if campus==194904002& rated_year ==2000; qui replace sample=1 if campus==10902001& rated_year ==1998; qui replace sample=1 if campus==163901001& rated_year ==1999; qui replace sample=1 if campus==158906002& rated_year ==1996; qui replace sample=1 if campus==227901038& rated_year ==1995; qui replace sample=1 if campus==3904001& rated_year ==1999; qui replace sample=1 if campus==200904001& rated_year ==1996; qui replace sample=1 if campus==241906001& rated_year ==2008; qui replace sample=1 if campus==105905001& rated_year ==2005; qui replace sample=1 if campus==130902001& rated_year ==2008; qui replace sample=1 if campus==31916003& rated_year ==2006; qui replace sample=1 if campus==229905001& rated_year ==2004; qui replace sample=1 if campus==232903001& rated_year ==2002; qui replace sample=1 if campus==212909001& rated_year ==2003; qui replace sample=1 if campus==161912001& rated_year ==2007; qui replace sample=1 if campus==250907001& rated_year ==1996; qui replace sample=1 if campus==221901002& rated_year ==2005; qui replace sample=1 if campus==101920003& rated_year ==1998; qui replace sample=1 if campus==84902001& rated_year ==2002; qui replace sample=1 if campus==71902004& rated_year ==2005; qui replace sample=1 if campus==57912004& rated_year ==2008; qui replace sample=1 if campus==100904001& rated_year ==2004; qui replace sample=1 if campus==57912004& rated_year ==2004; qui replace sample=1 if campus==31906001& rated_year ==2008; qui replace sample=1 if campus==137903001& rated_year ==2002; qui replace sample=1 if campus==165902001& rated_year ==2001; qui replace sample=1 if campus==152910001& rated_year ==2007; qui replace sample=1 if campus==107910001& rated_year ==2000; qui replace sample=1 if campus==71901002& rated_year ==2006; qui replace sample=1 if campus==38901001& rated_year ==1998; qui replace sample=1 if campus==31901002& rated_year ==1998; qui replace sample=1 if campus==57912003& rated_year ==2005; qui replace sample=1 if campus==240903001& rated_year ==2003; qui replace sample=1 if campus==31916005& rated_year ==2007; qui replace sample=1 if campus==57912003& rated_year ==1998; qui replace sample=1 if campus==15911001& rated_year ==1998; qui replace sample=1 if campus==40902001& rated_year ==1996; qui replace sample=1 if campus==252901001& rated_year ==2007; qui replace sample=1 if campus==236901002& rated_year ==2003; qui replace sample=1 if campus==117904001& rated_year ==2006; qui replace sample=1 if campus==57912002& rated_year ==2003; qui replace sample=1 if campus==57912002& rated_year ==2000; qui replace sample=1 if campus==79907006& rated_year ==2005; qui replace sample=1 if campus==57911001& rated_year ==2007; qui replace sample=1 if campus==57911001& rated_year ==2005; qui replace sample=1 if campus==39903001& rated_year ==2000; qui replace sample=1 if campus==57911001& rated_year ==2001; qui replace sample=1 if campus==57911001& rated_year ==1997; qui replace sample=1 if campus==91917001& rated_year ==2005; qui replace sample=1 if campus==57905034& rated_year ==2006; qui replace sample=1 if campus==94901001& rated_year ==1994; qui replace sample=1 if campus==19909001& rated_year ==2008; qui replace sample=1 if campus==108906002& rated_year ==2004; qui replace sample=1 if campus==165901044& rated_year ==2000; qui replace sample=1 if campus==69902001& rated_year ==1994; qui replace sample=1 if campus==18907001& rated_year ==1994; qui replace sample=1 if campus==101902003& rated_year ==1999; qui replace sample=1 if campus==105906001& rated_year ==2002; qui replace sample=1 if campus==178915001& rated_year ==2004; qui replace sample=1 if campus==200904001& rated_year ==2007; qui replace sample=1 if campus==251902001& rated_year ==2005; qui replace sample=1 if campus==25901001& rated_year ==1994; qui replace sample=1 if campus==20902001& rated_year ==2000; qui replace sample=1 if campus==71902008& rated_year ==1997; qui replace sample=1 if campus==71902004& rated_year ==2001; qui replace sample=1 if campus==101912033& rated_year ==2008; qui replace sample=1 if campus==43911001& rated_year ==2000; qui replace sample=1 if campus==61912001& rated_year ==1997; qui replace sample=1 if campus==246909001& rated_year ==1996; qui replace sample=1 if campus==15910002& rated_year ==2001; qui replace sample=1 if campus==101912028& rated_year ==1996; qui replace sample=1 if campus==57910003& rated_year ==2005; qui replace sample=1 if campus==108902001& rated_year ==2008; qui replace sample=1 if campus==57910003& rated_year ==2002; qui replace sample=1 if campus==57910003& rated_year ==2000; qui replace sample=1 if campus==246909003& rated_year ==2005; qui replace sample=1 if campus==178909001& rated_year ==1999; qui replace sample=1 if campus==57910003& rated_year ==1996; qui replace sample=1 if campus==101924001& rated_year ==1999; qui replace sample=1 if campus==57910002& rated_year ==2003; qui replace sample=1 if campus==57910002& rated_year ==2001; qui replace sample=1 if campus==184909001& rated_year ==2006; qui replace sample=1 if campus==57910002& rated_year ==1999; qui replace sample=1 if campus==57910002& rated_year ==1998; qui replace sample=1 if campus==18907001& rated_year ==1997; qui replace sample=1 if campus==101920003& rated_year ==2005; qui replace sample=1 if campus==201908001& rated_year ==1997; qui replace sample=1 if campus==166904001& rated_year ==1996; qui replace sample=1 if campus==57905013& rated_year ==2007; qui replace sample=1 if campus==175903001& rated_year ==1999; qui replace sample=1 if campus==101902005& rated_year ==2002; qui replace sample=1 if campus==97902001& rated_year ==2000; qui replace sample=1 if campus==119902001& rated_year ==2008; qui replace sample=1 if campus==36902001& rated_year ==2006; qui replace sample=1 if campus==101910002& rated_year ==2006; qui replace sample=1 if campus==95901001& rated_year ==2003; qui replace sample=1 if campus==13903001& rated_year ==1999; qui replace sample=1 if campus==185903001& rated_year ==2006; qui replace sample=1 if campus==26901001& rated_year ==1998; qui replace sample=1 if campus==31903002& rated_year ==2000; qui replace sample=1 if campus==92902002& rated_year ==2007; qui replace sample=1 if campus==100905001& rated_year ==2002; qui replace sample=1 if campus==102901002& rated_year ==2008; qui replace sample=1 if campus==15908002& rated_year ==2004; qui replace sample=1 if campus==123910001& rated_year ==2008; qui replace sample=1 if campus==220905008& rated_year ==1996; qui replace sample=1 if campus==232903002& rated_year ==1994; qui replace sample=1 if campus==129906002& rated_year ==2003; qui replace sample=1 if campus==124901001& rated_year ==1998; qui replace sample=1 if campus==15904001& rated_year ==2006; qui replace sample=1 if campus==248901001& rated_year ==1997; qui replace sample=1 if campus==44902001& rated_year ==2001; qui replace sample=1 if campus==116902001& rated_year ==2003; qui replace sample=1 if campus==15909001& rated_year ==2003; qui replace sample=1 if campus==71902011& rated_year ==2008; qui replace sample=1 if campus==57909005& rated_year ==2002; qui replace sample=1 if campus==57909005& rated_year ==2001; qui replace sample=1 if campus==57909005& rated_year ==1999; qui replace sample=1 if campus==84901001& rated_year ==2000; qui replace sample=1 if campus==49907001& rated_year ==2002; qui replace sample=1 if campus==57909005& rated_year ==1995; qui replace sample=1 if campus==57909004& rated_year ==2008; qui replace sample=1 if campus==107904001& rated_year ==2001; qui replace sample=1 if campus==101912002& rated_year ==1999; qui replace sample=1 if campus==62901001& rated_year ==2004; qui replace sample=1 if campus==45902001& rated_year ==2008; qui replace sample=1 if campus==139911002& rated_year ==2005; qui replace sample=1 if campus==57909004& rated_year ==1994; qui replace sample=1 if campus==20906002& rated_year ==2003; qui replace sample=1 if campus==31912001& rated_year ==2003; qui replace sample=1 if campus==57909003& rated_year ==2002; qui replace sample=1 if campus==250904001& rated_year ==2006; qui replace sample=1 if campus==232903001& rated_year ==2008; qui replace sample=1 if campus==55901001& rated_year ==1996; qui replace sample=1 if campus==19902002& rated_year ==2003; qui replace sample=1 if campus==57909002& rated_year ==2002; qui replace sample=1 if campus==28903001& rated_year ==1996; qui replace sample=1 if campus==229904001& rated_year ==2005; qui replace sample=1 if campus==15911001& rated_year ==2002; qui replace sample=1 if campus==133901001& rated_year ==2000; qui replace sample=1 if campus==37901001& rated_year ==1996; qui replace sample=1 if campus==220912001& rated_year ==2007; qui replace sample=1 if campus==181908001& rated_year ==2008; qui replace sample=1 if campus==77902001& rated_year ==1994; qui replace sample=1 if campus==205907001& rated_year ==1999; qui replace sample=1 if campus==28902001& rated_year ==1994; qui replace sample=1 if campus==101917002& rated_year ==2003; qui replace sample=1 if campus==47902001& rated_year ==1994; qui replace sample=1 if campus==2901001& rated_year ==2001; qui replace sample=1 if campus==57907003& rated_year ==2000; qui replace sample=1 if campus==107905001& rated_year ==1995; qui replace sample=1 if campus==57907003& rated_year ==1997; qui replace sample=1 if campus==57907003& rated_year ==1996; qui replace sample=1 if campus==57907003& rated_year ==1995; qui replace sample=1 if campus==100904001& rated_year ==2005; qui replace sample=1 if campus==161906002& rated_year ==1994; qui replace sample=1 if campus==116908001& rated_year ==2005; qui replace sample=1 if campus==108913001& rated_year ==2004; qui replace sample=1 if campus==90904001& rated_year ==2005; qui replace sample=1 if campus==71901002& rated_year ==2001; qui replace sample=1 if campus==91913001& rated_year ==2002; qui replace sample=1 if campus==231901001& rated_year ==1999; qui replace sample=1 if campus==152906001& rated_year ==2007; qui replace sample=1 if campus==108907001& rated_year ==2007; qui replace sample=1 if campus==113903002& rated_year ==2003; qui replace sample=1 if campus==79907004& rated_year ==1995; qui replace sample=1 if campus==180902001& rated_year ==2001; qui replace sample=1 if campus==94904001& rated_year ==1997; qui replace sample=1 if campus==57906001& rated_year ==2006; qui replace sample=1 if campus==57906001& rated_year ==2004; qui replace sample=1 if campus==121905001& rated_year ==1998; qui replace sample=1 if campus==91906002& rated_year ==1999; qui replace sample=1 if campus==57906001& rated_year ==2001; qui replace sample=1 if campus==57906001& rated_year ==1996; qui replace sample=1 if campus==71906001& rated_year ==2002; qui replace sample=1 if campus==57905021& rated_year ==2005; qui replace sample=1 if campus==227907001& rated_year ==2004; qui replace sample=1 if campus==94904001& rated_year ==2003; qui replace sample=1 if campus==71901001& rated_year ==2002; qui replace sample=1 if campus==40901001& rated_year ==2003; qui replace sample=1 if campus==117903001& rated_year ==2006; qui replace sample=1 if campus==107902001& rated_year ==1996; qui replace sample=1 if campus==73903001& rated_year ==2003; qui replace sample=1 if campus==146906001& rated_year ==1997; qui replace sample=1 if campus==116901001& rated_year ==1994; qui replace sample=1 if campus==181901001& rated_year ==1998; qui replace sample=1 if campus==168901001& rated_year ==2007; qui replace sample=1 if campus==232903002& rated_year ==2005; qui replace sample=1 if campus==205901001& rated_year ==2001; qui replace sample=1 if campus==84909001& rated_year ==1995; qui replace sample=1 if campus==175902001& rated_year ==2008; qui replace sample=1 if campus==75901001& rated_year ==1997; qui replace sample=1 if campus==61902002& rated_year ==2007; qui replace sample=1 if campus==50910001& rated_year ==2004; qui replace sample=1 if campus==84906001& rated_year ==2001; qui replace sample=1 if campus==141902001& rated_year ==1997; qui replace sample=1 if campus==71901002& rated_year ==2005; qui replace sample=1 if campus==202903001& rated_year ==2006; qui replace sample=1 if campus==57905097& rated_year ==1997; qui replace sample=1 if campus==71902010& rated_year ==1996; qui replace sample=1 if campus==202905002& rated_year ==1995; qui replace sample=1 if campus==102903002& rated_year ==2001; qui replace sample=1 if campus==46902001& rated_year ==1994; qui replace sample=1 if campus==161918001& rated_year ==2003; qui replace sample=1 if campus==137903001& rated_year ==1999; qui replace sample=1 if campus==146905001& rated_year ==2007; qui replace sample=1 if campus==241902001& rated_year ==2004; qui replace sample=1 if campus==223901001& rated_year ==1995; qui replace sample=1 if campus==143901001& rated_year ==1996; qui replace sample=1 if campus==227901008& rated_year ==2008; qui replace sample=1 if campus==178904004& rated_year ==2007; qui replace sample=1 if campus==220915001& rated_year ==2002; qui replace sample=1 if campus==18902001& rated_year ==2000; qui replace sample=1 if campus==57914004& rated_year ==1997; qui replace sample=1 if campus==24901001& rated_year ==2006; qui replace sample=1 if campus==109911001& rated_year ==1995; qui replace sample=1 if campus==20905001& rated_year ==1998; qui replace sample=1 if campus==247904001& rated_year ==2000; qui replace sample=1 if campus==101906001& rated_year ==1995; qui replace sample=1 if campus==101912020& rated_year ==2000; qui replace sample=1 if campus==101905001& rated_year ==1999; qui replace sample=1 if campus==28903001& rated_year ==2007; qui replace sample=1 if campus==170908001& rated_year ==1998; qui replace sample=1 if campus==45905002& rated_year ==2007; qui replace sample=1 if campus==156902001& rated_year ==2004; qui replace sample=1 if campus==232903002& rated_year ==1998; qui replace sample=1 if campus==62903001& rated_year ==1996; qui replace sample=1 if campus==235901001& rated_year ==1997; qui replace sample=1 if campus==57905039& rated_year ==2004; qui replace sample=1 if campus==57905039& rated_year ==2001; qui replace sample=1 if campus==57905039& rated_year ==2000; qui replace sample=1 if campus==20901001& rated_year ==1995; qui replace sample=1 if campus==82902001& rated_year ==2004; qui replace sample=1 if campus==157901001& rated_year ==2008; qui replace sample=1 if campus==205904001& rated_year ==2004; qui replace sample=1 if campus==57905039& rated_year ==1994; qui replace sample=1 if campus==20905001& rated_year ==1999; qui replace sample=1 if campus==146902002& rated_year ==2001; qui replace sample=1 if campus==57905038& rated_year ==2005; qui replace sample=1 if campus==57905038& rated_year ==2002; qui replace sample=1 if campus==57905038& rated_year ==2001; qui replace sample=1 if campus==57905038& rated_year ==1997; qui replace sample=1 if campus==50902001& rated_year ==1998; qui replace sample=1 if campus==252903001& rated_year ==1997; qui replace sample=1 if campus==57905002& rated_year ==2005; qui replace sample=1 if campus==16901001& rated_year ==1995; qui replace sample=1 if campus==227910001& rated_year ==2008; qui replace sample=1 if campus==57905037& rated_year ==1998; qui replace sample=1 if campus==146901001& rated_year ==2002; qui replace sample=1 if campus==146906001& rated_year ==2004; qui replace sample=1 if campus==19902002& rated_year ==1996; qui replace sample=1 if campus==57905036& rated_year ==2007; qui replace sample=1 if campus==154901001& rated_year ==2003; qui replace sample=1 if campus==243901001& rated_year ==2000; qui replace sample=1 if campus==57914002& rated_year ==2000; qui replace sample=1 if campus==15915004& rated_year ==1999; qui replace sample=1 if campus==25909001& rated_year ==1998; qui replace sample=1 if campus==108911001& rated_year ==1997; qui replace sample=1 if campus==108912001& rated_year ==1999; qui replace sample=1 if campus==61901003& rated_year ==1994; qui replace sample=1 if campus==49903001& rated_year ==1996; qui replace sample=1 if campus==84910002& rated_year ==1996; qui replace sample=1 if campus==57911001& rated_year ==2003; qui replace sample=1 if campus==57909004& rated_year ==1996; qui replace sample=1 if campus==57905034& rated_year ==2000; qui replace sample=1 if campus==240903002& rated_year ==2005; qui replace sample=1 if campus==57905034& rated_year ==1998; qui replace sample=1 if campus==102906001& rated_year ==2000; qui replace sample=1 if campus==57905034& rated_year ==1994; qui replace sample=1 if campus==57905033& rated_year ==2008; qui replace sample=1 if campus==57905033& rated_year ==2006; qui replace sample=1 if campus==114904001& rated_year ==2005; qui replace sample=1 if campus==101914005& rated_year ==1997; qui replace sample=1 if campus==57910002& rated_year ==1995; qui replace sample=1 if campus==57905033& rated_year ==1999; qui replace sample=1 if campus==220905005& rated_year ==2004; qui replace sample=1 if campus==1907001& rated_year ==2004; qui replace sample=1 if campus==226906001& rated_year ==2008; qui replace sample=1 if campus==101912034& rated_year ==1996; qui replace sample=1 if campus==154901001& rated_year ==2005; qui replace sample=1 if campus==43914001& rated_year ==2007; qui replace sample=1 if campus==184902001& rated_year ==2000; qui replace sample=1 if campus==57905032& rated_year ==1996; qui replace sample=1 if campus==57905013& rated_year ==1997; qui replace sample=1 if campus==252901001& rated_year ==2001; qui replace sample=1 if campus==57905015& rated_year ==2004; qui replace sample=1 if campus==174903001& rated_year ==1996; qui replace sample=1 if campus==240901003& rated_year ==2004; qui replace sample=1 if campus==201914001& rated_year ==1994; qui replace sample=1 if campus==242902001& rated_year ==2007; qui replace sample=1 if campus==101913002& rated_year ==1994; qui replace sample=1 if campus==90904001& rated_year ==1996; qui replace sample=1 if campus==251902001& rated_year ==2004; qui replace sample=1 if campus==101907005& rated_year ==1998; qui replace sample=1 if campus==221911001& rated_year ==2005; qui replace sample=1 if campus==181901001& rated_year ==1996; qui replace sample=1 if campus==69902001& rated_year ==1996; qui replace sample=1 if campus==188901001& rated_year ==2007; qui replace sample=1 if campus==19912001& rated_year ==1997; qui replace sample=1 if campus==101912016& rated_year ==1994; qui replace sample=1 if campus==3904001& rated_year ==2004; qui replace sample=1 if campus==91905001& rated_year ==2006; qui replace sample=1 if campus==220905002& rated_year ==2004; qui replace sample=1 if campus==253901001& rated_year ==1996; qui replace sample=1 if campus==123908001& rated_year ==2002; qui replace sample=1 if campus==25902001& rated_year ==2007; qui replace sample=1 if campus==249905001& rated_year ==1995; qui replace sample=1 if campus==227901003& rated_year ==2008; qui replace sample=1 if campus==71907001& rated_year ==2006; qui replace sample=1 if campus==57905001& rated_year ==2002; qui replace sample=1 if campus==67903001& rated_year ==2006; qui replace sample=1 if campus==16901001& rated_year ==1994; qui replace sample=1 if campus==57905025& rated_year ==1997; qui replace sample=1 if campus==232903002& rated_year ==2008; qui replace sample=1 if campus==100908001& rated_year ==2005; qui replace sample=1 if campus==57905024& rated_year ==2006; qui replace sample=1 if campus==133904001& rated_year ==2002; qui replace sample=1 if campus==57905024& rated_year ==2001; qui replace sample=1 if campus==20901001& rated_year ==2001; qui replace sample=1 if campus==57905024& rated_year ==1999; qui replace sample=1 if campus==165901042& rated_year ==2003; qui replace sample=1 if campus==57905024& rated_year ==1996; qui replace sample=1 if campus==116909001& rated_year ==2006; qui replace sample=1 if campus==205904001& rated_year ==2002; qui replace sample=1 if campus==57905023& rated_year ==2001; qui replace sample=1 if campus==46901001& rated_year ==1996; qui replace sample=1 if campus==57905023& rated_year ==1997; qui replace sample=1 if campus==14906001& rated_year ==2008; qui replace sample=1 if campus==91903001& rated_year ==1998; qui replace sample=1 if campus==57905022& rated_year ==2005; qui replace sample=1 if campus==57905036& rated_year ==2002; qui replace sample=1 if campus==71901002& rated_year ==1996; qui replace sample=1 if campus==229903001& rated_year ==1994; qui replace sample=1 if campus==57905022& rated_year ==1996; qui replace sample=1 if campus==7901001& rated_year ==2008; qui replace sample=1 if campus==126903001& rated_year ==2002; qui replace sample=1 if campus==57905021& rated_year ==2004; qui replace sample=1 if campus==79906001& rated_year ==1996; qui replace sample=1 if campus==227904001& rated_year ==2007; qui replace sample=1 if campus==133904001& rated_year ==2008; qui replace sample=1 if campus==96904001& rated_year ==2007; qui replace sample=1 if campus==121903001& rated_year ==1994; qui replace sample=1 if campus==109907001& rated_year ==1995; qui replace sample=1 if campus==107901001& rated_year ==2003; qui replace sample=1 if campus==57905018& rated_year ==2007; qui replace sample=1 if campus==68901002& rated_year ==2006; qui replace sample=1 if campus==19909001& rated_year ==1997; qui replace sample=1 if campus==161909001& rated_year ==1999; qui replace sample=1 if campus==101915002& rated_year ==2007; qui replace sample=1 if campus==59901001& rated_year ==1997; qui replace sample=1 if campus==227904001& rated_year ==1997; qui replace sample=1 if campus==57905017& rated_year ==2004; qui replace sample=1 if campus==185901001& rated_year ==2001; qui replace sample=1 if campus==170904002& rated_year ==1999; qui replace sample=1 if campus==57905017& rated_year ==1997; qui replace sample=1 if campus==101902002& rated_year ==2003; qui replace sample=1 if campus==62904001& rated_year ==2007; qui replace sample=1 if campus==19905001& rated_year ==1997; qui replace sample=1 if campus==5902001& rated_year ==2000; qui replace sample=1 if campus==71905003& rated_year ==2003; qui replace sample=1 if campus==183902001& rated_year ==1998; qui replace sample=1 if campus==91914001& rated_year ==1996; qui replace sample=1 if campus==15908002& rated_year ==2006; qui replace sample=1 if campus==57905015& rated_year ==1996; qui replace sample=1 if campus==31901003& rated_year ==2007; qui replace sample=1 if campus==57905015& rated_year ==1994; qui replace sample=1 if campus==71901001& rated_year ==1999; qui replace sample=1 if campus==91918001& rated_year ==2000; qui replace sample=1 if campus==57905014& rated_year ==2003; qui replace sample=1 if campus==57905014& rated_year ==2002; qui replace sample=1 if campus==19912001& rated_year ==1998; qui replace sample=1 if campus==39902001& rated_year ==2008; qui replace sample=1 if campus==57905014& rated_year ==1998; qui replace sample=1 if campus==19903001& rated_year ==1996; qui replace sample=1 if campus==57905014& rated_year ==1994; qui replace sample=1 if campus==147903002& rated_year ==2002; qui replace sample=1 if campus==57905013& rated_year ==2005; qui replace sample=1 if campus==220905001& rated_year ==2001; qui replace sample=1 if campus==251901001& rated_year ==2008; qui replace sample=1 if campus==241904001& rated_year ==1994; qui replace sample=1 if campus==57905009& rated_year ==1997; qui replace sample=1 if campus==45905002& rated_year ==2006; qui replace sample=1 if campus==20906002& rated_year ==1996; qui replace sample=1 if campus==126902001& rated_year ==2006; qui replace sample=1 if campus==123910008& rated_year ==2006; qui replace sample=1 if campus==44902001& rated_year ==2000; qui replace sample=1 if campus==57909003& rated_year ==1995; qui replace sample=1 if campus==66901001& rated_year ==1998; qui replace sample=1 if campus==230908001& rated_year ==2003; qui replace sample=1 if campus==57903002& rated_year ==2004; qui replace sample=1 if campus==170902003& rated_year ==2005; qui replace sample=1 if campus==71901001& rated_year ==2006; qui replace sample=1 if campus==20904001& rated_year ==1997; qui replace sample=1 if campus==101912008& rated_year ==2002; qui replace sample=1 if campus==112908001& rated_year ==2004; qui replace sample=1 if campus==57905008& rated_year ==2006; qui replace sample=1 if campus==57905008& rated_year ==2004; qui replace sample=1 if campus==14908001& rated_year ==1998; qui replace sample=1 if campus==111901001& rated_year ==1999; qui replace sample=1 if campus==39903001& rated_year ==2002; qui replace sample=1 if campus==57905008& rated_year ==1994; qui replace sample=1 if campus==57905007& rated_year ==2006; qui replace sample=1 if campus==94902001& rated_year ==2004; qui replace sample=1 if campus==30902001& rated_year ==2005; qui replace sample=1 if campus==57905007& rated_year ==2002; qui replace sample=1 if campus==178904001& rated_year ==2006; qui replace sample=1 if campus==207901001& rated_year ==2008; qui replace sample=1 if campus==57905007& rated_year ==1997; qui replace sample=1 if campus==15908002& rated_year ==1998; qui replace sample=1 if campus==117903001& rated_year ==2005; qui replace sample=1 if campus==229904001& rated_year ==2007; qui replace sample=1 if campus==57905018& rated_year ==2000; qui replace sample=1 if campus==129901001& rated_year ==1996; qui replace sample=1 if campus==71902006& rated_year ==2000; qui replace sample=1 if campus==205901001& rated_year ==2002; qui replace sample=1 if campus==113905001& rated_year ==1996; qui replace sample=1 if campus==62904001& rated_year ==2008; qui replace sample=1 if campus==20902001& rated_year ==1996; qui replace sample=1 if campus==43910005& rated_year ==1994; qui replace sample=1 if campus==57905037& rated_year ==2004; qui replace sample=1 if campus==68901003& rated_year ==1997; qui replace sample=1 if campus==12901001& rated_year ==2004; qui replace sample=1 if campus==57905025& rated_year ==1996; qui replace sample=1 if campus==253901001& rated_year ==2007; qui replace sample=1 if campus==57905002& rated_year ==2001; qui replace sample=1 if campus==57905002& rated_year ==2000; qui replace sample=1 if campus==49903001& rated_year ==2008; qui replace sample=1 if campus==54903001& rated_year ==1995; qui replace sample=1 if campus==220912001& rated_year ==1994; qui replace sample=1 if campus==15907008& rated_year ==2006; qui replace sample=1 if campus==13901001& rated_year ==1999; qui replace sample=1 if campus==249905001& rated_year ==2002; qui replace sample=1 if campus==61906001& rated_year ==2008; qui replace sample=1 if campus==205905001& rated_year ==2001; qui replace sample=1 if campus==57905001& rated_year ==1997; qui replace sample=1 if campus==176901001& rated_year ==1998; qui replace sample=1 if campus==71902006& rated_year ==2006; qui replace sample=1 if campus==202905002& rated_year ==2005; qui replace sample=1 if campus==137903001& rated_year ==1997; qui replace sample=1 if campus==71902010& rated_year ==1995; qui replace sample=1 if campus==57904001& rated_year ==2002; qui replace sample=1 if campus==101917003& rated_year ==2006; qui replace sample=1 if campus==183901001& rated_year ==1994; qui replace sample=1 if campus==7901001& rated_year ==1997; qui replace sample=1 if campus==70908001& rated_year ==2008; qui replace sample=1 if campus==101902005& rated_year ==2000; qui replace sample=1 if campus==180901001& rated_year ==2006; qui replace sample=1 if campus==116908001& rated_year ==2008; qui replace sample=1 if campus==61902002& rated_year ==2006; qui replace sample=1 if campus==70915001& rated_year ==2007; qui replace sample=1 if campus==31916001& rated_year ==1996; qui replace sample=1 if campus==198903001& rated_year ==2006; qui replace sample=1 if campus==57905002& rated_year ==2003; qui replace sample=1 if campus==81904001& rated_year ==1997; qui replace sample=1 if campus==91905001& rated_year ==1998; qui replace sample=1 if campus==212903001& rated_year ==2000; qui replace sample=1 if campus==21902001& rated_year ==2004; qui replace sample=1 if campus==54903001& rated_year ==1997; qui replace sample=1 if campus==158901001& rated_year ==2005; qui replace sample=1 if campus==198903001& rated_year ==1996; qui replace sample=1 if campus==93901001& rated_year ==1998; qui replace sample=1 if campus==64901001& rated_year ==1998; qui replace sample=1 if campus==8902001& rated_year ==2004; qui replace sample=1 if campus==66903002& rated_year ==2000; qui replace sample=1 if campus==214901001& rated_year ==2005; qui replace sample=1 if campus==232902001& rated_year ==2000; qui replace sample=1 if campus==72903001& rated_year ==1997; qui replace sample=1 if campus==144901001& rated_year ==2007; qui replace sample=1 if campus==20905001& rated_year ==1994; qui replace sample=1 if campus==221912001& rated_year ==1999; qui replace sample=1 if campus==227901008& rated_year ==2001; qui replace sample=1 if campus==101912002& rated_year ==2008; qui replace sample=1 if campus==57903002& rated_year ==2006; qui replace sample=1 if campus==57903002& rated_year ==2005; qui replace sample=1 if campus==189901001& rated_year ==1996; qui replace sample=1 if campus==57903002& rated_year ==1998; qui replace sample=1 if campus==191901002& rated_year ==2001; qui replace sample=1 if campus==201914001& rated_year ==2002; qui replace sample=1 if campus==61902004& rated_year ==2005; qui replace sample=1 if campus==152906001& rated_year ==2002; qui replace sample=1 if campus==170903002& rated_year ==2007; qui replace sample=1 if campus==57903001& rated_year ==1994; qui replace sample=1 if campus==227901002& rated_year ==2008; qui replace sample=1 if campus==38901001& rated_year ==1995; qui replace sample=1 if campus==15904001& rated_year ==1996; qui replace sample=1 if campus==31901001& rated_year ==1994; qui replace sample=1 if campus==240901003& rated_year ==2002; qui replace sample=1 if campus==50902001& rated_year ==1994; qui replace sample=1 if campus==102904002& rated_year ==2000; qui replace sample=1 if campus==189902001& rated_year ==2005; qui replace sample=1 if campus==94901001& rated_year ==2000; qui replace sample=1 if campus==206901001& rated_year ==2008; qui replace sample=1 if campus==3906001& rated_year ==2006; qui replace sample=1 if campus==212909001& rated_year ==2005; qui replace sample=1 if campus==68901002& rated_year ==2003; qui replace sample=1 if campus==227901007& rated_year ==1995; qui replace sample=1 if campus==15910002& rated_year ==1999; qui replace sample=1 if campus==126901001& rated_year ==2005; qui replace sample=1 if campus==31916004& rated_year ==2008; qui replace sample=1 if campus==36901001& rated_year ==2006; qui replace sample=1 if campus==57905026& rated_year ==2000; qui replace sample=1 if campus==71905005& rated_year ==1994; qui replace sample=1 if campus==220905010& rated_year ==2001; qui replace sample=1 if campus==109907001& rated_year ==1998; qui replace sample=1 if campus==184907001& rated_year ==1999; qui replace sample=1 if campus==108913004& rated_year ==1995; qui replace sample=1 if campus==15915005& rated_year ==2002; qui replace sample=1 if campus==42901001& rated_year ==2005; qui replace sample=1 if campus==14906002& rated_year ==1999; qui replace sample=1 if campus==161914002& rated_year ==2001; qui replace sample=1 if campus==70912002& rated_year ==1995; qui replace sample=1 if campus==31906001& rated_year ==1998; qui replace sample=1 if campus==82903001& rated_year ==1999; qui replace sample=1 if campus==15915002& rated_year ==2001; qui replace sample=1 if campus==220902001& rated_year ==1996; qui replace sample=1 if campus==215901001& rated_year ==2007; qui replace sample=1 if campus==220920001& rated_year ==1998; qui replace sample=1 if campus==96904001& rated_year ==2003; qui replace sample=1 if campus==249901001& rated_year ==2005; qui replace sample=1 if campus==233901002& rated_year ==2008; qui replace sample=1 if campus==108903001& rated_year ==1994; qui replace sample=1 if campus==81904001& rated_year ==2000; qui replace sample=1 if campus==73905001& rated_year ==2007; qui replace sample=1 if campus==220902002& rated_year ==2006; qui replace sample=1 if campus==154901001& rated_year ==2008; qui replace sample=1 if campus==127904001& rated_year ==2006; qui replace sample=1 if campus==45903001& rated_year ==2002; qui replace sample=1 if campus==29901001& rated_year ==2000; qui replace sample=1 if campus==33904001& rated_year ==2008; qui replace sample=1 if campus==61901003& rated_year ==1995; qui replace sample=1 if campus==79907002& rated_year ==2007; qui replace sample=1 if campus==84901001& rated_year ==2003; qui replace sample=1 if campus==84910002& rated_year ==2004; qui replace sample=1 if campus==31914001& rated_year ==2003; qui replace sample=1 if campus==223901001& rated_year ==1998; qui replace sample=1 if campus==102902001& rated_year ==2002; qui replace sample=1 if campus==126901001& rated_year ==1996; qui replace sample=1 if campus==30903001& rated_year ==2001; qui replace sample=1 if campus==251902001& rated_year ==2006; qui replace sample=1 if campus==220905009& rated_year ==2005; qui replace sample=1 if campus==232903002& rated_year ==1997; qui replace sample=1 if campus==126908001& rated_year ==1995; qui replace sample=1 if campus==165902001& rated_year ==1997; qui replace sample=1 if campus==220902002& rated_year ==2001; qui replace sample=1 if campus==84902001& rated_year ==1996; qui replace sample=1 if campus==21902005& rated_year ==1999; qui replace sample=1 if campus==156902001& rated_year ==1999; qui replace sample=1 if campus==57905023& rated_year ==1998; qui replace sample=1 if campus==108906001& rated_year ==1996; qui replace sample=1 if campus==227901006& rated_year ==2002; qui replace sample=1 if campus==147903002& rated_year ==2004; qui replace sample=1 if campus==205903001& rated_year ==1995; qui replace sample=1 if campus==15915003& rated_year ==2001; qui replace sample=1 if campus==57905033& rated_year ==1998; qui replace sample=1 if campus==170902005& rated_year ==1994; qui replace sample=1 if campus==232903001& rated_year ==1997; qui replace sample=1 if campus==49905001& rated_year ==2003; qui replace sample=1 if campus==18902001& rated_year ==1995; qui replace sample=1 if campus==234904001& rated_year ==2008; qui replace sample=1 if campus==83901001& rated_year ==1996; qui replace sample=1 if campus==144902001& rated_year ==2003; qui replace sample=1 if campus==169902001& rated_year ==2005; qui replace sample=1 if campus==109907001& rated_year ==2002; qui replace sample=1 if campus==126908001& rated_year ==2005; qui replace sample=1 if campus==21901001& rated_year ==2007; qui replace sample=1 if campus==3905001& rated_year ==1994; qui replace sample=1 if campus==247901001& rated_year ==1994; qui replace sample=1 if campus==139912001& rated_year ==2006; qui replace sample=1 if campus==176901001& rated_year ==2004; qui replace sample=1 if campus==40901001& rated_year ==2006; qui replace sample=1 if campus==67902001& rated_year ==1998; qui replace sample=1 if campus==57903002& rated_year ==1996; qui replace sample=1 if campus==44902001& rated_year ==1995; qui replace sample=1 if campus==170904002& rated_year ==2007; qui replace sample=1 if campus==241904001& rated_year ==2005; qui replace sample=1 if campus==229903001& rated_year ==2002; qui replace sample=1 if campus==163908001& rated_year ==1994; qui replace sample=1 if campus==16901001& rated_year ==1999; qui replace sample=1 if campus==15915007& rated_year ==1996; qui replace sample=1 if campus==201908001& rated_year ==1995; qui replace sample=1 if campus==1909001& rated_year ==2004; qui replace sample=1 if campus==108906006& rated_year ==2000; qui replace sample=1 if campus==179901001& rated_year ==2008; qui replace sample=1 if campus==20906002& rated_year ==2001; qui replace sample=1 if campus==124901001& rated_year ==2002; qui replace sample=1 if campus==249906001& rated_year ==2008; qui replace sample=1 if campus==145911002& rated_year ==2006; qui replace sample=1 if campus==68901045& rated_year ==2005; qui replace sample=1 if campus==170904002& rated_year ==2003; qui replace sample=1 if campus==71901001& rated_year ==2003; qui replace sample=1 if campus==123907002& rated_year ==2001; qui replace sample=1 if campus==137901001& rated_year ==1996; qui replace sample=1 if campus==101910003& rated_year ==1999; qui replace sample=1 if campus==177902001& rated_year ==1997; qui replace sample=1 if campus==105904001& rated_year ==2003; qui replace sample=1 if campus==161914002& rated_year ==2004; qui replace sample=1 if campus==71902001& rated_year ==2005; qui replace sample=1 if campus==220918001& rated_year ==1997; qui replace sample=1 if campus==15904001& rated_year ==1995; qui replace sample=1 if campus==71902006& rated_year ==2004; qui replace sample=1 if campus==234903001& rated_year ==2006; qui replace sample=1 if campus==71902002& rated_year ==1994; qui replace sample=1 if campus==21902001& rated_year ==2006; qui replace sample=1 if campus==14910001& rated_year ==1998; qui replace sample=1 if campus==146906001& rated_year ==1995; qui replace sample=1 if campus==19905001& rated_year ==2000; qui replace sample=1 if campus==107901001& rated_year ==2004; qui replace sample=1 if campus==123914001& rated_year ==1999; qui replace sample=1 if campus==82903001& rated_year ==1998; qui replace sample=1 if campus==34901001& rated_year ==2004; qui replace sample=1 if campus==129905001& rated_year ==2003; qui replace sample=1 if campus==152909001& rated_year ==2001; qui replace sample=1 if campus==227901002& rated_year ==1994; qui replace sample=1 if campus==220908001& rated_year ==1996; qui replace sample=1 if campus==239903001& rated_year ==1998; qui replace sample=1 if campus==92907001& rated_year ==1997; qui replace sample=1 if campus==136901001& rated_year ==2005; qui replace sample=1 if campus==128902001& rated_year ==2007; qui replace sample=1 if campus==140905002& rated_year ==1995; qui replace sample=1 if campus==223901001& rated_year ==2001; qui replace sample=1 if campus==57905037& rated_year ==1997; qui replace sample=1 if campus==20908001& rated_year ==1994; qui replace sample=1 if campus==102906001& rated_year ==1998; qui replace sample=1 if campus==101912011& rated_year ==1997; qui replace sample=1 if campus==161910001& rated_year ==2003; qui replace sample=1 if campus==13903001& rated_year ==1995; qui replace sample=1 if campus==15915003& rated_year ==1995; qui replace sample=1 if campus==108904003& rated_year ==1998; qui replace sample=1 if campus==227901003& rated_year ==1994; qui replace sample=1 if campus==71905001& rated_year ==2001; qui replace sample=1 if campus==226905001& rated_year ==1996; qui replace sample=1 if campus==31901003& rated_year ==2002; qui replace sample=1 if campus==71908001& rated_year ==2000; qui replace sample=1 if campus==125902001& rated_year ==2000; qui replace sample=1 if campus==73905001& rated_year ==1997; qui replace sample=1 if campus==101907002& rated_year ==1998; qui replace sample=1 if campus==116902001& rated_year ==2005; qui replace sample=1 if campus==188901005& rated_year ==2000; qui replace sample=1 if campus==49907001& rated_year ==2003; qui replace sample=1 if campus==247906001& rated_year ==1997; qui replace sample=1 if campus==227901013& rated_year ==2008; qui replace sample=1 if campus==101920003& rated_year ==1999; qui replace sample=1 if campus==108913001& rated_year ==2005; qui replace sample=1 if campus==56901001& rated_year ==1995; qui replace sample=1 if campus==43904001& rated_year ==2006; qui replace sample=1 if campus==245902001& rated_year ==1997; qui replace sample=1 if campus==55901001& rated_year ==2006; qui replace sample=1 if campus==235901001& rated_year ==2005; qui replace sample=1 if campus==170902003& rated_year ==1994; qui replace sample=1 if campus==58906001& rated_year ==2003; qui replace sample=1 if campus==43910007& rated_year ==2001; qui replace sample=1 if campus==233901001& rated_year ==2008; qui replace sample=1 if campus==55901001& rated_year ==1994; qui replace sample=1 if campus==101917003& rated_year ==2005; qui replace sample=1 if campus==181901001& rated_year ==1995; qui replace sample=1 if campus==220912001& rated_year ==2004; qui replace sample=1 if campus==43907002& rated_year ==1996; qui replace sample=1 if campus==94902001& rated_year ==2008; qui replace sample=1 if campus==54903001& rated_year ==1999; qui replace sample=1 if campus==54903001& rated_year ==1998; qui replace sample=1 if campus==93901001& rated_year ==2007; qui replace sample=1 if campus==230908001& rated_year ==1995; qui replace sample=1 if campus==108908001& rated_year ==1996; qui replace sample=1 if campus==54902001& rated_year ==2004; qui replace sample=1 if campus==54902001& rated_year ==2001; qui replace sample=1 if campus==122901002& rated_year ==2007; qui replace sample=1 if campus==54902001& rated_year ==1997; qui replace sample=1 if campus==71902003& rated_year ==1995; qui replace sample=1 if campus==54902001& rated_year ==1995; qui replace sample=1 if campus==108909003& rated_year ==2002; qui replace sample=1 if campus==15915006& rated_year ==2008; qui replace sample=1 if campus==101902003& rated_year ==1994; qui replace sample=1 if campus==11901001& rated_year ==1994; qui replace sample=1 if campus==152902001& rated_year ==2006; qui replace sample=1 if campus==146906001& rated_year ==2001; qui replace sample=1 if campus==178909001& rated_year ==2008; qui replace sample=1 if campus==57904001& rated_year ==2007; qui replace sample=1 if campus==170906001& rated_year ==1996; qui replace sample=1 if campus==101920005& rated_year ==1994; qui replace sample=1 if campus==187904001& rated_year ==2006; qui replace sample=1 if campus==15907003& rated_year ==1996; qui replace sample=1 if campus==57912003& rated_year ==2002; qui replace sample=1 if campus==123908001& rated_year ==2001; qui replace sample=1 if campus==128902001& rated_year ==1994; qui replace sample=1 if campus==53001001& rated_year ==2001; qui replace sample=1 if campus==199902002& rated_year ==1996; qui replace sample=1 if campus==116915001& rated_year ==2006; qui replace sample=1 if campus==31901003& rated_year ==1996; qui replace sample=1 if campus==97903001& rated_year ==2001; qui replace sample=1 if campus==82903001& rated_year ==2000; qui replace sample=1 if campus==3907001& rated_year ==1995; qui replace sample=1 if campus==51901001& rated_year ==1995; qui replace sample=1 if campus==51901001& rated_year ==1994; qui replace sample=1 if campus==108909003& rated_year ==2004; qui replace sample=1 if campus==196902001& rated_year ==2006; qui replace sample=1 if campus==15905003& rated_year ==1996; qui replace sample=1 if campus==199902002& rated_year ==2000; qui replace sample=1 if campus==123910008& rated_year ==2003; qui replace sample=1 if campus==101912024& rated_year ==2006; qui replace sample=1 if campus==26902001& rated_year ==2001; qui replace sample=1 if campus==60902001& rated_year ==2001; qui replace sample=1 if campus==20902001& rated_year ==1998; qui replace sample=1 if campus==113906001& rated_year ==2001; qui replace sample=1 if campus==50910001& rated_year ==1999; qui replace sample=1 if campus==101917004& rated_year ==2002; qui replace sample=1 if campus==107906001& rated_year ==1995; qui replace sample=1 if campus==178904002& rated_year ==2005; qui replace sample=1 if campus==207901001& rated_year ==1997; qui replace sample=1 if campus==202903001& rated_year ==2002; qui replace sample=1 if campus==92903001& rated_year ==1997; qui replace sample=1 if campus==236901002& rated_year ==2008; qui replace sample=1 if campus==101917003& rated_year ==2008; qui replace sample=1 if campus==186902001& rated_year ==2004; qui replace sample=1 if campus==19901001& rated_year ==2004; qui replace sample=1 if campus==119902001& rated_year ==2003; qui replace sample=1 if campus==20905001& rated_year ==2002; qui replace sample=1 if campus==101912007& rated_year ==2000; qui replace sample=1 if campus==50902001& rated_year ==2001; qui replace sample=1 if campus==161910001& rated_year ==1995; qui replace sample=1 if campus==229901001& rated_year ==2000; qui replace sample=1 if campus==57903002& rated_year ==2002; qui replace sample=1 if campus==84910003& rated_year ==2004; qui replace sample=1 if campus==126903001& rated_year ==2003; qui replace sample=1 if campus==100904001& rated_year ==2006; qui replace sample=1 if campus==70915001& rated_year ==2003; qui replace sample=1 if campus==215901001& rated_year ==2008; qui replace sample=1 if campus==165902001& rated_year ==2007; qui replace sample=1 if campus==220905002& rated_year ==2002; qui replace sample=1 if campus==71908001& rated_year ==1995; qui replace sample=1 if campus==121903001& rated_year ==1996; qui replace sample=1 if campus==96904001& rated_year ==1999; qui replace sample=1 if campus==253901001& rated_year ==2000; qui replace sample=1 if campus==75902001& rated_year ==1999; qui replace sample=1 if campus==71902002& rated_year ==2008; qui replace sample=1 if campus==6902001& rated_year ==1994; qui replace sample=1 if campus==101902002& rated_year ==1998; qui replace sample=1 if campus==124901001& rated_year ==1997; qui replace sample=1 if campus==49905001& rated_year ==2007; qui replace sample=1 if campus==55901001& rated_year ==1999; qui replace sample=1 if campus==215901001& rated_year ==2004; qui replace sample=1 if campus==241902001& rated_year ==2008; qui replace sample=1 if campus==49905001& rated_year ==1999; qui replace sample=1 if campus==49905001& rated_year ==1998; qui replace sample=1 if campus==200901001& rated_year ==1998; qui replace sample=1 if campus==96904001& rated_year ==1994; qui replace sample=1 if campus==97902001& rated_year ==2003; qui replace sample=1 if campus==18902001& rated_year ==2006; qui replace sample=1 if campus==212903001& rated_year ==1996; qui replace sample=1 if campus==231901001& rated_year ==2001; qui replace sample=1 if campus==49903001& rated_year ==1998; qui replace sample=1 if campus==49903001& rated_year ==1997; qui replace sample=1 if campus==188901001& rated_year ==1998; qui replace sample=1 if campus==74903001& rated_year ==1994; qui replace sample=1 if campus==142901001& rated_year ==1999; qui replace sample=1 if campus==233901002& rated_year ==2006; qui replace sample=1 if campus==167901001& rated_year ==2000; qui replace sample=1 if campus==70912002& rated_year ==2004; qui replace sample=1 if campus==175904001& rated_year ==1998; qui replace sample=1 if campus==91903001& rated_year ==1995; qui replace sample=1 if campus==108904003& rated_year ==1994; qui replace sample=1 if campus==57909002& rated_year ==1999; qui replace sample=1 if campus==178913001& rated_year ==2000; qui replace sample=1 if campus==249905001& rated_year ==2007; qui replace sample=1 if campus==79901002& rated_year ==2006; qui replace sample=1 if campus==57909002& rated_year ==1996; qui replace sample=1 if campus==200901001& rated_year ==2003; qui replace sample=1 if campus==184903001& rated_year ==2007; qui replace sample=1 if campus==200904001& rated_year ==2008; qui replace sample=1 if campus==49901001& rated_year ==2008; qui replace sample=1 if campus==101903001& rated_year ==1999; qui replace sample=1 if campus==15908001& rated_year ==2003; qui replace sample=1 if campus==149901001& rated_year ==2008; qui replace sample=1 if campus==225902001& rated_year ==1996; qui replace sample=1 if campus==124901001& rated_year ==2005; qui replace sample=1 if campus==43905001& rated_year ==2006; qui replace sample=1 if campus==158901001& rated_year ==2001; qui replace sample=1 if campus==221912001& rated_year ==2002; qui replace sample=1 if campus==79907001& rated_year ==2003; qui replace sample=1 if campus==15910003& rated_year ==2006; qui replace sample=1 if campus==107905001& rated_year ==2003; qui replace sample=1 if campus==251901001& rated_year ==1998; qui replace sample=1 if campus==98904001& rated_year ==1996; qui replace sample=1 if campus==240901001& rated_year ==2001; qui replace sample=1 if campus==101910003& rated_year ==1994; qui replace sample=1 if campus==220905014& rated_year ==1999; qui replace sample=1 if campus==108910001& rated_year ==1998; qui replace sample=1 if campus==60902001& rated_year ==2006; qui replace sample=1 if campus==57905024& rated_year ==1997; qui replace sample=1 if campus==108916001& rated_year ==2006; qui replace sample=1 if campus==254901001& rated_year ==1996; qui replace sample=1 if campus==220912001& rated_year ==1998; qui replace sample=1 if campus==15910004& rated_year ==1997; qui replace sample=1 if campus==55901001& rated_year ==2005; qui replace sample=1 if campus==161921001& rated_year ==2003; qui replace sample=1 if campus==145902001& rated_year ==2000; qui replace sample=1 if campus==57909002& rated_year ==2008; qui replace sample=1 if campus==227901003& rated_year ==1996; qui replace sample=1 if campus==31903002& rated_year ==2002; qui replace sample=1 if campus==234906001& rated_year ==2006; qui replace sample=1 if campus==243905004& rated_year ==2002; qui replace sample=1 if campus==166901002& rated_year ==2007; qui replace sample=1 if campus==229901001& rated_year ==1994; qui replace sample=1 if campus==221912001& rated_year ==2006; qui replace sample=1 if campus==81904001& rated_year ==1994; qui replace sample=1 if campus==15904001& rated_year ==1994; qui replace sample=1 if campus==196903001& rated_year ==2006; qui replace sample=1 if campus==31914001& rated_year ==2002; qui replace sample=1 if campus==121905001& rated_year ==1994; qui replace sample=1 if campus==241902001& rated_year ==2002; qui replace sample=1 if campus==71904001& rated_year ==2000; qui replace sample=1 if campus==143901001& rated_year ==2000; qui replace sample=1 if campus==47902001& rated_year ==2002; qui replace sample=1 if campus==47902001& rated_year ==2001; qui replace sample=1 if campus==49905001& rated_year ==1994; qui replace sample=1 if campus==91905001& rated_year ==2000; qui replace sample=1 if campus==184903001& rated_year ==2008; qui replace sample=1 if campus==67902001& rated_year ==1999; qui replace sample=1 if campus==47901001& rated_year ==2008; qui replace sample=1 if campus==57905038& rated_year ==1998; qui replace sample=1 if campus==47901001& rated_year ==2002; qui replace sample=1 if campus==47901001& rated_year ==1997; qui replace sample=1 if campus==47901001& rated_year ==1996; qui replace sample=1 if campus==47901001& rated_year ==1994; qui replace sample=1 if campus==181906001& rated_year ==2006; qui replace sample=1 if campus==161914002& rated_year ==2000; qui replace sample=1 if campus==121906001& rated_year ==1997; qui replace sample=1 if campus==19905001& rated_year ==2007; qui replace sample=1 if campus==212905001& rated_year ==2003; qui replace sample=1 if campus==210905001& rated_year ==1994; qui replace sample=1 if campus==110907001& rated_year ==1999; qui replace sample=1 if campus==46902002& rated_year ==2005; qui replace sample=1 if campus==20907001& rated_year ==2002; qui replace sample=1 if campus==63903001& rated_year ==2007; qui replace sample=1 if campus==101916001& rated_year ==2007; qui replace sample=1 if campus==46902002& rated_year ==2001; qui replace sample=1 if campus==46902002& rated_year ==1999; qui replace sample=1 if campus==243905004& rated_year ==2005; qui replace sample=1 if campus==46902002& rated_year ==1996; qui replace sample=1 if campus==22901001& rated_year ==2003; qui replace sample=1 if campus==174902001& rated_year ==2001; qui replace sample=1 if campus==46902001& rated_year ==2008; qui replace sample=1 if campus==43910007& rated_year ==1994; qui replace sample=1 if campus==123907001& rated_year ==2001; qui replace sample=1 if campus==15911001& rated_year ==2006; qui replace sample=1 if campus==46902001& rated_year ==2001; qui replace sample=1 if campus==101920001& rated_year ==1999; qui replace sample=1 if campus==101911003& rated_year ==1998; qui replace sample=1 if campus==15916001& rated_year ==2007; qui replace sample=1 if campus==46902001& rated_year ==1995; qui replace sample=1 if campus==7902001& rated_year ==1996; qui replace sample=1 if campus==13901001& rated_year ==2003; qui replace sample=1 if campus==19909001& rated_year ==1995; qui replace sample=1 if campus==100907001& rated_year ==2003; qui replace sample=1 if campus==91914001& rated_year ==2007; qui replace sample=1 if campus==79906001& rated_year ==2003; qui replace sample=1 if campus==7904001& rated_year ==2001; qui replace sample=1 if campus==15908002& rated_year ==1996; qui replace sample=1 if campus==141901001& rated_year ==2002; qui replace sample=1 if campus==61902004& rated_year ==2001; qui replace sample=1 if campus==46901001& rated_year ==2003; qui replace sample=1 if campus==250906001& rated_year ==2003; qui replace sample=1 if campus==46901001& rated_year ==1998; qui replace sample=1 if campus==46901001& rated_year ==1995; qui replace sample=1 if campus==31913001& rated_year ==2003; qui replace sample=1 if campus==220905014& rated_year ==1995; qui replace sample=1 if campus==30902001& rated_year ==2006; qui replace sample=1 if campus==120901001& rated_year ==1995; qui replace sample=1 if campus==227901010& rated_year ==1998; qui replace sample=1 if campus==101914005& rated_year ==2000; qui replace sample=1 if campus==200902001& rated_year ==1997; qui replace sample=1 if campus==158905001& rated_year ==2002; qui replace sample=1 if campus==205907001& rated_year ==2002; qui replace sample=1 if campus==15915006& rated_year ==1999; qui replace sample=1 if campus==45905002& rated_year ==1999; qui replace sample=1 if campus==198903001& rated_year ==2007; qui replace sample=1 if campus==45905002& rated_year ==1994; qui replace sample=1 if campus==150901001& rated_year ==1999; qui replace sample=1 if campus==79907001& rated_year ==1998; qui replace sample=1 if campus==116903001& rated_year ==2007; qui replace sample=1 if campus==45903001& rated_year ==2006; qui replace sample=1 if campus==227901009& rated_year ==1999; qui replace sample=1 if campus==30903001& rated_year ==2002; qui replace sample=1 if campus==45903001& rated_year ==2001; qui replace sample=1 if campus==45903001& rated_year ==1999; qui replace sample=1 if campus==45903001& rated_year ==1994; qui replace sample=1 if campus==141901001& rated_year ==2006; qui replace sample=1 if campus==101917004& rated_year ==1997; qui replace sample=1 if campus==15915003& rated_year ==2003; qui replace sample=1 if campus==57914002& rated_year ==2006; qui replace sample=1 if campus==45902001& rated_year ==2007; qui replace sample=1 if campus==45902001& rated_year ==2005; qui replace sample=1 if campus==49907001& rated_year ==2007; qui replace sample=1 if campus==101912009& rated_year ==2003; qui replace sample=1 if campus==45902001& rated_year ==1997; qui replace sample=1 if campus==45902001& rated_year ==1996; qui replace sample=1 if campus==228903001& rated_year ==2005; qui replace sample=1 if campus==15907004& rated_year ==1998; qui replace sample=1 if campus==126905001& rated_year ==2008; qui replace sample=1 if campus==101903002& rated_year ==2003; qui replace sample=1 if campus==178913001& rated_year ==2001; qui replace sample=1 if campus==10901001& rated_year ==1996; qui replace sample=1 if campus==91914001& rated_year ==2005; qui replace sample=1 if campus==38901001& rated_year ==2000; qui replace sample=1 if campus==220918001& rated_year ==2000; qui replace sample=1 if campus==109904001& rated_year ==2005; qui replace sample=1 if campus==236901002& rated_year ==2005; qui replace sample=1 if campus==101907004& rated_year ==2004; qui replace sample=1 if campus==247906001& rated_year ==2008; qui replace sample=1 if campus==19906001& rated_year ==1999; qui replace sample=1 if campus==116906001& rated_year ==1994; qui replace sample=1 if campus==44902001& rated_year ==1994; qui replace sample=1 if campus==19908001& rated_year ==2000; qui replace sample=1 if campus==14903001& rated_year ==2000; qui replace sample=1 if campus==226903002& rated_year ==1995; qui replace sample=1 if campus==91918001& rated_year ==1994; qui replace sample=1 if campus==181907001& rated_year ==1994; qui replace sample=1 if campus==145911002& rated_year ==2008; qui replace sample=1 if campus==91917001& rated_year ==2001; qui replace sample=1 if campus==116909001& rated_year ==1999; qui replace sample=1 if campus==94901001& rated_year ==2007; qui replace sample=1 if campus==31916001& rated_year ==2007; qui replace sample=1 if campus==250907001& rated_year ==1994; qui replace sample=1 if campus==102902001& rated_year ==1995; qui replace sample=1 if campus==101912007& rated_year ==1998; qui replace sample=1 if campus==227901010& rated_year ==2000; qui replace sample=1 if campus==1909001& rated_year ==2008; qui replace sample=1 if campus==201913001& rated_year ==1998; qui replace sample=1 if campus==186902001& rated_year ==1997; qui replace sample=1 if campus==57905032& rated_year ==2001; qui replace sample=1 if campus==108906001& rated_year ==1999; qui replace sample=1 if campus==153904001& rated_year ==1998; qui replace sample=1 if campus==43914001& rated_year ==2003; qui replace sample=1 if campus==84909001& rated_year ==2007; qui replace sample=1 if campus==43914001& rated_year ==1999; qui replace sample=1 if campus==227901010& rated_year ==2004; qui replace sample=1 if campus==168901001& rated_year ==1996; qui replace sample=1 if campus==15915006& rated_year ==2006; qui replace sample=1 if campus==102905001& rated_year ==2007; qui replace sample=1 if campus==205904001& rated_year ==1995; qui replace sample=1 if campus==50902001& rated_year ==1995; qui replace sample=1 if campus==170904002& rated_year ==2005; qui replace sample=1 if campus==43911001& rated_year ==2008; qui replace sample=1 if campus==234904001& rated_year ==2004; qui replace sample=1 if campus==201914001& rated_year ==2005; qui replace sample=1 if campus==142901001& rated_year ==2002; qui replace sample=1 if campus==128902001& rated_year ==2001; qui replace sample=1 if campus==127904001& rated_year ==2003; qui replace sample=1 if campus==109905001& rated_year ==2001; qui replace sample=1 if campus==221911001& rated_year ==2006; qui replace sample=1 if campus==239901001& rated_year ==1998; qui replace sample=1 if campus==105902001& rated_year ==2004; qui replace sample=1 if campus==35902001& rated_year ==1997; qui replace sample=1 if campus==30901001& rated_year ==1994; qui replace sample=1 if campus==178902001& rated_year ==1995; qui replace sample=1 if campus==108903001& rated_year ==2002; qui replace sample=1 if campus==20905002& rated_year ==1996; qui replace sample=1 if campus==102906001& rated_year ==2005; qui replace sample=1 if campus==61905001& rated_year ==1998; qui replace sample=1 if campus==43910007& rated_year ==2007; qui replace sample=1 if campus==43910007& rated_year ==2005; qui replace sample=1 if campus==43910007& rated_year ==2004; qui replace sample=1 if campus==57905009& rated_year ==2006; qui replace sample=1 if campus==212903001& rated_year ==2003; qui replace sample=1 if campus==43910007& rated_year ==1999; qui replace sample=1 if campus==113902002& rated_year ==2005; qui replace sample=1 if campus==101912012& rated_year ==1996; qui replace sample=1 if campus==57905025& rated_year ==2002; qui replace sample=1 if campus==108907001& rated_year ==2004; qui replace sample=1 if campus==101902005& rated_year ==2006; qui replace sample=1 if campus==174908001& rated_year ==1995; qui replace sample=1 if campus==101908001& rated_year ==2002; qui replace sample=1 if campus==43910005& rated_year ==2006; qui replace sample=1 if campus==15907001& rated_year ==2008; qui replace sample=1 if campus==178908001& rated_year ==2002; qui replace sample=1 if campus==129906002& rated_year ==1999; qui replace sample=1 if campus==91914001& rated_year ==2002; qui replace sample=1 if campus==43902001& rated_year ==1996; qui replace sample=1 if campus==129904001& rated_year ==2008; qui replace sample=1 if campus==183902001& rated_year ==2002; qui replace sample=1 if campus==227907001& rated_year ==1996; qui replace sample=1 if campus==57909004& rated_year ==2005; qui replace sample=1 if campus==220905010& rated_year ==2005; qui replace sample=1 if campus==36902001& rated_year ==1999; qui replace sample=1 if campus==184907001& rated_year ==2001; qui replace sample=1 if campus==4901001& rated_year ==2000; qui replace sample=1 if campus==101910002& rated_year ==1998; qui replace sample=1 if campus==123910008& rated_year ==2004; qui replace sample=1 if campus==91913001& rated_year ==2004; qui replace sample=1 if campus==57905038& rated_year ==1995; qui replace sample=1 if campus==229904001& rated_year ==2004; qui replace sample=1 if campus==28903001& rated_year ==2001; qui replace sample=1 if campus==212902001& rated_year ==1995; qui replace sample=1 if campus==28902001& rated_year ==2000; qui replace sample=1 if campus==27904001& rated_year ==2006; qui replace sample=1 if campus==101914002& rated_year ==2005; qui replace sample=1 if campus==101920006& rated_year ==1999; qui replace sample=1 if campus==239903001& rated_year ==2006; qui replace sample=1 if campus==183901001& rated_year ==2008; qui replace sample=1 if campus==163908001& rated_year ==1997; qui replace sample=1 if campus==57904001& rated_year ==1995; qui replace sample=1 if campus==226905001& rated_year ==2000; qui replace sample=1 if campus==190903001& rated_year ==1994; qui replace sample=1 if campus==101910003& rated_year ==2000; qui replace sample=1 if campus==228903001& rated_year ==2000; qui replace sample=1 if campus==101912026& rated_year ==2005; qui replace sample=1 if campus==108906002& rated_year ==2006; qui replace sample=1 if campus==101912005& rated_year ==2007; qui replace sample=1 if campus==43907002& rated_year ==2002; qui replace sample=1 if campus==116902001& rated_year ==1998; qui replace sample=1 if campus==200904001& rated_year ==1994; qui replace sample=1 if campus==227901005& rated_year ==2003; qui replace sample=1 if campus==101908001& rated_year ==1995; qui replace sample=1 if campus==108911001& rated_year ==2007; qui replace sample=1 if campus==212905003& rated_year ==2002; qui replace sample=1 if campus==71905004& rated_year ==1996; qui replace sample=1 if campus==54903001& rated_year ==2006; qui replace sample=1 if campus==57905034& rated_year ==2002; qui replace sample=1 if campus==221901001& rated_year ==2008; qui replace sample=1 if campus==206901001& rated_year ==1997; qui replace sample=1 if campus==210905001& rated_year ==2006; qui replace sample=1 if campus==246909004& rated_year ==2005; qui replace sample=1 if campus==161906002& rated_year ==2006; qui replace sample=1 if campus==170903002& rated_year ==1996; qui replace sample=1 if campus==43907002& rated_year ==2004; qui replace sample=1 if campus==43907002& rated_year ==2003; qui replace sample=1 if campus==36902001& rated_year ==1996; qui replace sample=1 if campus==220905011& rated_year ==2005; qui replace sample=1 if campus==170904002& rated_year ==1996; qui replace sample=1 if campus==144902001& rated_year ==2001; qui replace sample=1 if campus==243905001& rated_year ==2003; qui replace sample=1 if campus==56901001& rated_year ==2000; qui replace sample=1 if campus==101912019& rated_year ==1994; qui replace sample=1 if campus==212906001& rated_year ==2007; qui replace sample=1 if campus==91910001& rated_year ==2002; qui replace sample=1 if campus==18902001& rated_year ==1996; qui replace sample=1 if campus==152907001& rated_year ==2001; qui replace sample=1 if campus==101912016& rated_year ==2002; qui replace sample=1 if campus==161916001& rated_year ==2006; qui replace sample=1 if campus==43904001& rated_year ==2003; qui replace sample=1 if campus==84901001& rated_year ==2006; qui replace sample=1 if campus==243905004& rated_year ==1994; qui replace sample=1 if campus==43903001& rated_year ==2007; qui replace sample=1 if campus==126902001& rated_year ==2007; qui replace sample=1 if campus==36901001& rated_year ==2002; qui replace sample=1 if campus==43903001& rated_year ==2002; qui replace sample=1 if campus==125905001& rated_year ==2003; qui replace sample=1 if campus==43903001& rated_year ==1996; qui replace sample=1 if campus==114901001& rated_year ==2001; qui replace sample=1 if campus==30902001& rated_year ==2001; qui replace sample=1 if campus==116915001& rated_year ==2008; qui replace sample=1 if campus==105904001& rated_year ==2006; qui replace sample=1 if campus==43902001& rated_year ==2000; qui replace sample=1 if campus==57920002& rated_year ==1994; qui replace sample=1 if campus==57912003& rated_year ==2001; qui replace sample=1 if campus==230902002& rated_year ==2005; qui replace sample=1 if campus==196902001& rated_year ==1994; qui replace sample=1 if campus==229905001& rated_year ==2008; qui replace sample=1 if campus==124901001& rated_year ==2006; qui replace sample=1 if campus==210903002& rated_year ==2003; qui replace sample=1 if campus==153903001& rated_year ==2003; qui replace sample=1 if campus==123907002& rated_year ==1994; qui replace sample=1 if campus==14909002& rated_year ==1995; qui replace sample=1 if campus==251901001& rated_year ==2004; qui replace sample=1 if campus==19909001& rated_year ==2002; qui replace sample=1 if campus==6902001& rated_year ==1996; qui replace sample=1 if campus==170904002& rated_year ==2006; qui replace sample=1 if campus==242902001& rated_year ==2008; qui replace sample=1 if campus==45905002& rated_year ==2005; qui replace sample=1 if campus==101910002& rated_year ==2000; qui replace sample=1 if campus==57905038& rated_year ==2003; qui replace sample=1 if campus==147903002& rated_year ==1994; qui replace sample=1 if campus==252901001& rated_year ==1994; qui replace sample=1 if campus==46902002& rated_year ==2008; qui replace sample=1 if campus==212906001& rated_year ==2000; qui replace sample=1 if campus==26901001& rated_year ==1997; qui replace sample=1 if campus==221901002& rated_year ==1997; qui replace sample=1 if campus==66903002& rated_year ==1995; qui replace sample=1 if campus==101908001& rated_year ==2005; qui replace sample=1 if campus==123910008& rated_year ==1994; qui replace sample=1 if campus==116903001& rated_year ==2001; qui replace sample=1 if campus==72903001& rated_year ==2003; qui replace sample=1 if campus==101915003& rated_year ==1998; qui replace sample=1 if campus==59901001& rated_year ==2007; qui replace sample=1 if campus==18902001& rated_year ==2008; qui replace sample=1 if campus==19902002& rated_year ==2004; qui replace sample=1 if campus==57905008& rated_year ==1998; qui replace sample=1 if campus==101912015& rated_year ==2005; qui replace sample=1 if campus==117904001& rated_year ==2000; qui replace sample=1 if campus==117901001& rated_year ==2004; qui replace sample=1 if campus==79901001& rated_year ==2008; qui replace sample=1 if campus==194904002& rated_year ==1997; qui replace sample=1 if campus==213901001& rated_year ==2008; qui replace sample=1 if campus==4901001& rated_year ==1994; qui replace sample=1 if campus==57914002& rated_year ==1996; qui replace sample=1 if campus==126901001& rated_year ==1999; qui replace sample=1 if campus==34903001& rated_year ==2001; qui replace sample=1 if campus==10901001& rated_year ==2008; qui replace sample=1 if campus==16901001& rated_year ==2002; qui replace sample=1 if campus==101914001& rated_year ==1994; qui replace sample=1 if campus==100905001& rated_year ==2004; qui replace sample=1 if campus==15916001& rated_year ==2002; qui replace sample=1 if campus==249901001& rated_year ==2000; qui replace sample=1 if campus==108912001& rated_year ==1996; qui replace sample=1 if campus==240903001& rated_year ==2002; qui replace sample=1 if campus==71906001& rated_year ==2003; qui replace sample=1 if campus==242902001& rated_year ==1996; qui replace sample=1 if campus==42901001& rated_year ==2003; qui replace sample=1 if campus==191901002& rated_year ==1994; qui replace sample=1 if campus==19908001& rated_year ==1994; qui replace sample=1 if campus==74903001& rated_year ==2006; qui replace sample=1 if campus==29901001& rated_year ==1995; qui replace sample=1 if campus==49903001& rated_year ==2001; qui replace sample=1 if campus==169902001& rated_year ==1995; qui replace sample=1 if campus==53001001& rated_year ==1995; qui replace sample=1 if campus==220905006& rated_year ==1999; qui replace sample=1 if campus==83903001& rated_year ==2006; qui replace sample=1 if campus==116901001& rated_year ==2003; qui replace sample=1 if campus==180901001& rated_year ==2008; qui replace sample=1 if campus==205903001& rated_year ==1998; qui replace sample=1 if campus==26903002& rated_year ==2004; qui replace sample=1 if campus==101920003& rated_year ==1997; qui replace sample=1 if campus==170908001& rated_year ==2008; qui replace sample=1 if campus==101917002& rated_year ==1998; qui replace sample=1 if campus==125905001& rated_year ==2006; qui replace sample=1 if campus==66903002& rated_year ==2005; qui replace sample=1 if campus==247906001& rated_year ==1998; qui replace sample=1 if campus==95903001& rated_year ==1998; qui replace sample=1 if campus==240903001& rated_year ==2001; qui replace sample=1 if campus==152910001& rated_year ==1999; qui replace sample=1 if campus==123910003& rated_year ==1997; qui replace sample=1 if campus==15907003& rated_year ==2007; qui replace sample=1 if campus==232903001& rated_year ==2007; qui replace sample=1 if campus==15912001& rated_year ==1994; qui replace sample=1 if campus==71902011& rated_year ==1998; qui replace sample=1 if campus==201913001& rated_year ==1999; qui replace sample=1 if campus==91903001& rated_year ==2000; qui replace sample=1 if campus==13901001& rated_year ==1997; qui replace sample=1 if campus==227901006& rated_year ==1994; qui replace sample=1 if campus==126908001& rated_year ==2000; qui replace sample=1 if campus==6902001& rated_year ==2005; qui replace sample=1 if campus==101913002& rated_year ==2004; qui replace sample=1 if campus==54902001& rated_year ==1999; qui replace sample=1 if campus==123907002& rated_year ==1998; qui replace sample=1 if campus==101902001& rated_year ==2001; qui replace sample=1 if campus==101912020& rated_year ==2006; qui replace sample=1 if campus==31916001& rated_year ==2005; qui replace sample=1 if campus==70908001& rated_year ==2005; qui replace sample=1 if campus==226903002& rated_year ==2006; qui replace sample=1 if campus==187907002& rated_year ==1995; qui replace sample=1 if campus==101902001& rated_year ==2008; qui replace sample=1 if campus==205905001& rated_year ==2007; qui replace sample=1 if campus==7902001& rated_year ==2007; qui replace sample=1 if campus==212904002& rated_year ==2002; qui replace sample=1 if campus==238902001& rated_year ==2003; qui replace sample=1 if campus==123910001& rated_year ==1996; qui replace sample=1 if campus==40902001& rated_year ==2007; qui replace sample=1 if campus==127903001& rated_year ==2005; qui replace sample=1 if campus==40902001& rated_year ==2004; qui replace sample=1 if campus==31901007& rated_year ==2008; qui replace sample=1 if campus==1903001& rated_year ==2005; qui replace sample=1 if campus==105905001& rated_year ==1997; qui replace sample=1 if campus==68901045& rated_year ==1999; qui replace sample=1 if campus==107901001& rated_year ==2001; qui replace sample=1 if campus==72902001& rated_year ==1996; qui replace sample=1 if campus==246907001& rated_year ==1999; qui replace sample=1 if campus==62904001& rated_year ==2000; qui replace sample=1 if campus==20908001& rated_year ==2007; qui replace sample=1 if campus==15907001& rated_year ==1995; qui replace sample=1 if campus==57905022& rated_year ==2007; qui replace sample=1 if campus==167901001& rated_year ==2007; qui replace sample=1 if campus==181901001& rated_year ==2000; qui replace sample=1 if campus==106901001& rated_year ==1995; qui replace sample=1 if campus==18902001& rated_year ==1998; qui replace sample=1 if campus==72902001& rated_year ==1998; qui replace sample=1 if campus==15907001& rated_year ==1999; qui replace sample=1 if campus==40901001& rated_year ==2000; qui replace sample=1 if campus==126908001& rated_year ==1994; qui replace sample=1 if campus==40901001& rated_year ==1996; qui replace sample=1 if campus==92908001& rated_year ==1997; qui replace sample=1 if campus==18901001& rated_year ==2008; qui replace sample=1 if campus==108904003& rated_year ==2005; qui replace sample=1 if campus==39902001& rated_year ==1996; qui replace sample=1 if campus==92901001& rated_year ==2003; qui replace sample=1 if campus==183901001& rated_year ==2006; qui replace sample=1 if campus==187907002& rated_year ==2007; qui replace sample=1 if campus==158902001& rated_year ==2001; qui replace sample=1 if campus==101907005& rated_year ==2002; qui replace sample=1 if campus==145902001& rated_year ==2001; qui replace sample=1 if campus==13901001& rated_year ==1994; qui replace sample=1 if campus==165902001& rated_year ==2002; qui replace sample=1 if campus==101912010& rated_year ==1997; qui replace sample=1 if campus==30906001& rated_year ==2008; qui replace sample=1 if campus==101919001& rated_year ==2008; qui replace sample=1 if campus==220905010& rated_year ==1995; qui replace sample=1 if campus==101917003& rated_year ==2007; qui replace sample=1 if campus==250905001& rated_year ==1995; qui replace sample=1 if campus==22901001& rated_year ==2008; qui replace sample=1 if campus==220905009& rated_year ==2001; qui replace sample=1 if campus==139911002& rated_year ==2003; qui replace sample=1 if campus==7906001& rated_year ==2004; qui replace sample=1 if campus==39902001& rated_year ==2001; qui replace sample=1 if campus==1907001& rated_year ==1997; qui replace sample=1 if campus==100907001& rated_year ==2004; qui replace sample=1 if campus==101906001& rated_year ==2005; qui replace sample=1 if campus==57914004& rated_year ==2005; qui replace sample=1 if campus==245903001& rated_year ==1999; qui replace sample=1 if campus==101912034& rated_year ==1999; qui replace sample=1 if campus==15904001& rated_year ==2005; qui replace sample=1 if campus==146905001& rated_year ==2006; qui replace sample=1 if campus==227901004& rated_year ==1994; qui replace sample=1 if campus==83901001& rated_year ==1999; qui replace sample=1 if campus==240903001& rated_year ==2005; qui replace sample=1 if campus==15907002& rated_year ==1994; qui replace sample=1 if campus==66901001& rated_year ==2008; qui replace sample=1 if campus==117903001& rated_year ==2002; qui replace sample=1 if campus==241902001& rated_year ==2003; qui replace sample=1 if campus==22901001& rated_year ==1994; qui replace sample=1 if campus==170904002& rated_year ==2002; qui replace sample=1 if campus==57912002& rated_year ==1999; qui replace sample=1 if campus==70905002& rated_year ==1999; qui replace sample=1 if campus==37907002& rated_year ==2007; qui replace sample=1 if campus==37907002& rated_year ==2005; qui replace sample=1 if campus==101914001& rated_year ==1999; qui replace sample=1 if campus==144901001& rated_year ==2006; qui replace sample=1 if campus==37907002& rated_year ==2000; qui replace sample=1 if campus==49905001& rated_year ==2001; qui replace sample=1 if campus==37907002& rated_year ==1996; qui replace sample=1 if campus==7906001& rated_year ==1994; qui replace sample=1 if campus==77902001& rated_year ==2001; qui replace sample=1 if campus==232902001& rated_year ==2007; qui replace sample=1 if campus==195901001& rated_year ==1998; qui replace sample=1 if campus==19905001& rated_year ==1999; qui replace sample=1 if campus==133903001& rated_year ==2007; qui replace sample=1 if campus==196902001& rated_year ==2002; qui replace sample=1 if campus==123910008& rated_year ==1998; qui replace sample=1 if campus==184902001& rated_year ==2007; qui replace sample=1 if campus==130901001& rated_year ==2001; qui replace sample=1 if campus==250904001& rated_year ==1998; qui replace sample=1 if campus==37904002& rated_year ==2003; qui replace sample=1 if campus==205904001& rated_year ==2000; qui replace sample=1 if campus==101915001& rated_year ==2001; qui replace sample=1 if campus==37904002& rated_year ==1995; qui replace sample=1 if campus==71905003& rated_year ==2005; qui replace sample=1 if campus==116906001& rated_year ==2005; qui replace sample=1 if campus==81902002& rated_year ==2003; qui replace sample=1 if campus==171901001& rated_year ==1998; qui replace sample=1 if campus==30906001& rated_year ==2004; qui replace sample=1 if campus==57905039& rated_year ==1999; qui replace sample=1 if campus==101912026& rated_year ==1994; qui replace sample=1 if campus==49901001& rated_year ==1998; qui replace sample=1 if campus==243905002& rated_year ==1994; qui replace sample=1 if campus==109907001& rated_year ==1997; qui replace sample=1 if campus==223901001& rated_year ==2004; qui replace sample=1 if campus==168901001& rated_year ==2005; qui replace sample=1 if campus==188901001& rated_year ==2002; qui replace sample=1 if campus==15911001& rated_year ==1994; qui replace sample=1 if campus==15915002& rated_year ==1994; qui replace sample=1 if campus==109904001& rated_year ==2004; qui replace sample=1 if campus==170908001& rated_year ==2003; qui replace sample=1 if campus==57905032& rated_year ==2007; qui replace sample=1 if campus==154901001& rated_year ==1998; qui replace sample=1 if campus==237902001& rated_year ==2006; qui replace sample=1 if campus==71903001& rated_year ==1996; qui replace sample=1 if campus==116909001& rated_year ==2000; qui replace sample=1 if campus==36903001& rated_year ==1998; qui replace sample=1 if campus==57905017& rated_year ==2002; qui replace sample=1 if campus==71902006& rated_year ==2002; qui replace sample=1 if campus==183902001& rated_year ==2003; qui replace sample=1 if campus==73903001& rated_year ==2002; qui replace sample=1 if campus==25901001& rated_year ==2005; qui replace sample=1 if campus==19905001& rated_year ==2005; qui replace sample=1 if campus==31916005& rated_year ==1999; qui replace sample=1 if campus==101910002& rated_year ==1996; qui replace sample=1 if campus==152908001& rated_year ==2007; qui replace sample=1 if campus==101917002& rated_year ==2000; qui replace sample=1 if campus==36902001& rated_year ==2008; qui replace sample=1 if campus==49903001& rated_year ==2002; qui replace sample=1 if campus==101908001& rated_year ==2008; qui replace sample=1 if campus==57905025& rated_year ==2005; qui replace sample=1 if campus==26901001& rated_year ==2002; qui replace sample=1 if campus==31913001& rated_year ==1996; qui replace sample=1 if campus==236902002& rated_year ==2005; qui replace sample=1 if campus==169901001& rated_year ==1998; qui replace sample=1 if campus==140908001& rated_year ==2000; qui replace sample=1 if campus==220905005& rated_year ==2002; qui replace sample=1 if campus==175903001& rated_year ==1994; qui replace sample=1 if campus==91901001& rated_year ==1995; qui replace sample=1 if campus==220905008& rated_year ==2006; qui replace sample=1 if campus==116901001& rated_year ==2001; qui replace sample=1 if campus==205903001& rated_year ==2008; qui replace sample=1 if campus==97903001& rated_year ==1994; qui replace sample=1 if campus==161906002& rated_year ==2003; qui replace sample=1 if campus==63903001& rated_year ==1999; qui replace sample=1 if campus==36901001& rated_year ==2003; qui replace sample=1 if campus==36901001& rated_year ==1999; qui replace sample=1 if campus==89901001& rated_year ==1995; qui replace sample=1 if campus==234902001& rated_year ==1994; qui replace sample=1 if campus==101915002& rated_year ==1996; qui replace sample=1 if campus==254901001& rated_year ==1998; qui replace sample=1 if campus==31916004& rated_year ==2005; qui replace sample=1 if campus==205902001& rated_year ==1999; qui replace sample=1 if campus==101912010& rated_year ==2007; qui replace sample=1 if campus==246902001& rated_year ==2001; qui replace sample=1 if campus==35902001& rated_year ==2006; qui replace sample=1 if campus==35902001& rated_year ==2005; qui replace sample=1 if campus==35902001& rated_year ==2001; qui replace sample=1 if campus==35902001& rated_year ==1999; qui replace sample=1 if campus==101911003& rated_year ==1994; qui replace sample=1 if campus==102905001& rated_year ==2001; qui replace sample=1 if campus==28902001& rated_year ==1998; qui replace sample=1 if campus==220905004& rated_year ==1997; qui replace sample=1 if campus==174902001& rated_year ==1994; qui replace sample=1 if campus==215901001& rated_year ==2006; qui replace sample=1 if campus==35901001& rated_year ==1996; qui replace sample=1 if campus==181906001& rated_year ==1995; qui replace sample=1 if campus==31911001& rated_year ==2002; qui replace sample=1 if campus==43907002& rated_year ==1998; qui replace sample=1 if campus==67902001& rated_year ==2001; qui replace sample=1 if campus==248902001& rated_year ==1997; qui replace sample=1 if campus==81904001& rated_year ==1999; qui replace sample=1 if campus==130902001& rated_year ==2004; qui replace sample=1 if campus==34907001& rated_year ==2006; qui replace sample=1 if campus==34907001& rated_year ==2004; qui replace sample=1 if campus==34907001& rated_year ==2000; qui replace sample=1 if campus==111901001& rated_year ==2007; qui replace sample=1 if campus==227910001& rated_year ==1998; qui replace sample=1 if campus==205902001& rated_year ==2008; qui replace sample=1 if campus==220905008& rated_year ==2003; qui replace sample=1 if campus==57905037& rated_year ==2008; qui replace sample=1 if campus==92908001& rated_year ==2007; qui replace sample=1 if campus==34905002& rated_year ==2007; qui replace sample=1 if campus==186902001& rated_year ==1998; qui replace sample=1 if campus==4901001& rated_year ==2006; qui replace sample=1 if campus==113903002& rated_year ==2002; qui replace sample=1 if campus==71902009& rated_year ==1995; qui replace sample=1 if campus==180901001& rated_year ==1997; qui replace sample=1 if campus==101908001& rated_year ==1996; qui replace sample=1 if campus==106901001& rated_year ==2004; qui replace sample=1 if campus==98904001& rated_year ==1994; qui replace sample=1 if campus==14902001& rated_year ==2000; qui replace sample=1 if campus==116916001& rated_year ==2001; qui replace sample=1 if campus==34903001& rated_year ==1997; qui replace sample=1 if campus==34903001& rated_year ==1994; qui replace sample=1 if campus==130902001& rated_year ==1999; qui replace sample=1 if campus==125905001& rated_year ==2007; qui replace sample=1 if campus==72902001& rated_year ==2001; qui replace sample=1 if campus==102902001& rated_year ==2008; qui replace sample=1 if campus==42901001& rated_year ==1997; qui replace sample=1 if campus==68901045& rated_year ==2001; qui replace sample=1 if campus==34901001& rated_year ==2008; qui replace sample=1 if campus==101914002& rated_year ==2004; qui replace sample=1 if campus==34901001& rated_year ==2006; qui replace sample=1 if campus==34901001& rated_year ==2005; qui replace sample=1 if campus==34901001& rated_year ==2002; qui replace sample=1 if campus==34901001& rated_year ==2000; qui replace sample=1 if campus==34901001& rated_year ==1999; qui replace sample=1 if campus==7905001& rated_year ==2008; qui replace sample=1 if campus==34901001& rated_year ==1994; qui replace sample=1 if campus==116916001& rated_year ==1999; qui replace sample=1 if campus==227901007& rated_year ==2007; qui replace sample=1 if campus==170904002& rated_year ==1994; qui replace sample=1 if campus==33904001& rated_year ==2001; qui replace sample=1 if campus==33904001& rated_year ==1999; qui replace sample=1 if campus==33904001& rated_year ==1998; qui replace sample=1 if campus==73905001& rated_year ==2008; qui replace sample=1 if campus==101912015& rated_year ==2003; qui replace sample=1 if campus==235901001& rated_year ==2002; qui replace sample=1 if campus==99903001& rated_year ==1998; qui replace sample=1 if campus==161901001& rated_year ==1998; qui replace sample=1 if campus==25909001& rated_year ==2003; qui replace sample=1 if campus==109904001& rated_year ==2006; qui replace sample=1 if campus==50910001& rated_year ==2005; qui replace sample=1 if campus==116909001& rated_year ==2008; qui replace sample=1 if campus==33902001& rated_year ==2002; qui replace sample=1 if campus==108912001& rated_year ==1997; qui replace sample=1 if campus==101919001& rated_year ==2000; qui replace sample=1 if campus==252903001& rated_year ==1994; qui replace sample=1 if campus==11902001& rated_year ==1999; qui replace sample=1 if campus==116915001& rated_year ==2005; qui replace sample=1 if campus==15910005& rated_year ==2008; qui replace sample=1 if campus==25902001& rated_year ==2002; qui replace sample=1 if campus==12901001& rated_year ==1997; qui replace sample=1 if campus==214903001& rated_year ==1995; qui replace sample=1 if campus==62904001& rated_year ==1997; qui replace sample=1 if campus==226906001& rated_year ==1997; qui replace sample=1 if campus==32902002& rated_year ==2004; qui replace sample=1 if campus==163901001& rated_year ==1997; qui replace sample=1 if campus==102902001& rated_year ==2001; qui replace sample=1 if campus==32902002& rated_year ==1995; qui replace sample=1 if campus==205905001& rated_year ==1999; qui replace sample=1 if campus==145906001& rated_year ==2006; qui replace sample=1 if campus==184907001& rated_year ==2007; qui replace sample=1 if campus==105902001& rated_year ==1997; qui replace sample=1 if campus==196903001& rated_year ==1998; qui replace sample=1 if campus==121906001& rated_year ==2001; qui replace sample=1 if campus==14910001& rated_year ==2008; qui replace sample=1 if campus==31916005& rated_year ==2004; qui replace sample=1 if campus==31916005& rated_year ==2000; qui replace sample=1 if campus==212909001& rated_year ==2008; qui replace sample=1 if campus==31916005& rated_year ==1996; qui replace sample=1 if campus==31912001& rated_year ==2000; qui replace sample=1 if campus==101913001& rated_year ==2006; qui replace sample=1 if campus==116916001& rated_year ==2005; qui replace sample=1 if campus==247906001& rated_year ==1999; qui replace sample=1 if campus==38901001& rated_year ==1997; qui replace sample=1 if campus==108909003& rated_year ==2005; qui replace sample=1 if campus==101924001& rated_year ==1995; qui replace sample=1 if campus==170907001& rated_year ==1998; qui replace sample=1 if campus==180901001& rated_year ==1998; qui replace sample=1 if campus==123910007& rated_year ==1994; qui replace sample=1 if campus==31916004& rated_year ==1994; qui replace sample=1 if campus==31916003& rated_year ==2008; qui replace sample=1 if campus==123910007& rated_year ==1996; qui replace sample=1 if campus==31916003& rated_year ==2005; qui replace sample=1 if campus==31916003& rated_year ==2004; qui replace sample=1 if campus==31916003& rated_year ==2002; qui replace sample=1 if campus==232902001& rated_year ==1999; qui replace sample=1 if campus==125902001& rated_year ==2007; qui replace sample=1 if campus==31916003& rated_year ==1994; qui replace sample=1 if campus==57913001& rated_year ==1999; qui replace sample=1 if campus==91918001& rated_year ==2007; qui replace sample=1 if campus==31916001& rated_year ==2000; qui replace sample=1 if campus==161914003& rated_year ==1995; qui replace sample=1 if campus==137903001& rated_year ==2003; qui replace sample=1 if campus==101902002& rated_year ==2006; qui replace sample=1 if campus==210905001& rated_year ==2001; qui replace sample=1 if campus==43914001& rated_year ==1997; qui replace sample=1 if campus==31914001& rated_year ==2004; qui replace sample=1 if campus==95905001& rated_year ==2007; qui replace sample=1 if campus==196903001& rated_year ==2002; qui replace sample=1 if campus==31914001& rated_year ==2000; qui replace sample=1 if campus==101917002& rated_year ==2005; qui replace sample=1 if campus==15907007& rated_year ==2003; qui replace sample=1 if campus==31914001& rated_year ==1994; qui replace sample=1 if campus==175902001& rated_year ==2003; qui replace sample=1 if campus==119902001& rated_year ==2006; qui replace sample=1 if campus==31901002& rated_year ==1997; qui replace sample=1 if campus==15911001& rated_year ==2004; qui replace sample=1 if campus==43904001& rated_year ==2007; qui replace sample=1 if campus==240901001& rated_year ==1997; qui replace sample=1 if campus==74903001& rated_year ==2002; qui replace sample=1 if campus==212910001& rated_year ==2001; qui replace sample=1 if campus==70915001& rated_year ==2004; qui replace sample=1 if campus==31913001& rated_year ==2005; qui replace sample=1 if campus==101920001& rated_year ==2000; qui replace sample=1 if campus==220920001& rated_year ==2008; qui replace sample=1 if campus==100903002& rated_year ==2003; qui replace sample=1 if campus==30903001& rated_year ==1995; qui replace sample=1 if campus==101912026& rated_year ==1998; qui replace sample=1 if campus==74917001& rated_year ==1999; qui replace sample=1 if campus==31913001& rated_year ==1994; qui replace sample=1 if campus==178904002& rated_year ==2001; qui replace sample=1 if campus==33902001& rated_year ==2004; qui replace sample=1 if campus==62903001& rated_year ==2000; qui replace sample=1 if campus==157901001& rated_year ==2005; qui replace sample=1 if campus==184907001& rated_year ==1996; qui replace sample=1 if campus==73903001& rated_year ==1995; qui replace sample=1 if campus==254901001& rated_year ==1995; qui replace sample=1 if campus==220902002& rated_year ==1996; qui replace sample=1 if campus==177901001& rated_year ==1998; qui replace sample=1 if campus==239901001& rated_year ==2007; qui replace sample=1 if campus==250907001& rated_year ==2002; qui replace sample=1 if campus==15915007& rated_year ==1997; qui replace sample=1 if campus==91908001& rated_year ==2003; qui replace sample=1 if campus==27903001& rated_year ==1998; qui replace sample=1 if campus==70910001& rated_year ==2005; qui replace sample=1 if campus==71905002& rated_year ==2006; qui replace sample=1 if campus==250902001& rated_year ==1999; qui replace sample=1 if campus==174902001& rated_year ==1996; qui replace sample=1 if campus==109905001& rated_year ==1996; qui replace sample=1 if campus==31901004& rated_year ==1995; qui replace sample=1 if campus==238902001& rated_year ==1994; qui replace sample=1 if campus==57905008& rated_year ==2000; qui replace sample=1 if campus==90904001& rated_year ==1995; qui replace sample=1 if campus==94901001& rated_year ==1999; qui replace sample=1 if campus==98904001& rated_year ==2005; qui replace sample=1 if campus==229904001& rated_year ==2006; qui replace sample=1 if campus==19909001& rated_year ==1998; qui replace sample=1 if campus==161921001& rated_year ==1997; qui replace sample=1 if campus==161919001& rated_year ==1999; qui replace sample=1 if campus==57909004& rated_year ==2006; qui replace sample=1 if campus==240901001& rated_year ==2006; qui replace sample=1 if campus==31909001& rated_year ==2000; qui replace sample=1 if campus==31909001& rated_year ==1995; qui replace sample=1 if campus==31909001& rated_year ==1994; qui replace sample=1 if campus==71902004& rated_year ==1995; qui replace sample=1 if campus==57905013& rated_year ==1999; qui replace sample=1 if campus==198905002& rated_year ==2008; qui replace sample=1 if campus==61901003& rated_year ==2006; qui replace sample=1 if campus==194903001& rated_year ==1998; qui replace sample=1 if campus==71903001& rated_year ==2002; qui replace sample=1 if campus==166904001& rated_year ==2001; qui replace sample=1 if campus==66902001& rated_year ==2001; qui replace sample=1 if campus==101917004& rated_year ==1995; qui replace sample=1 if campus==219903001& rated_year ==2000; qui replace sample=1 if campus==215901001& rated_year ==1997; qui replace sample=1 if campus==184909001& rated_year ==1998; qui replace sample=1 if campus==3904001& rated_year ==2008; qui replace sample=1 if campus==26903002& rated_year ==2003; qui replace sample=1 if campus==31906001& rated_year ==2004; qui replace sample=1 if campus==31906001& rated_year ==2003; qui replace sample=1 if campus==15907004& rated_year ==2008; qui replace sample=1 if campus==31906001& rated_year ==1999; qui replace sample=1 if campus==84911001& rated_year ==2005; qui replace sample=1 if campus==109904001& rated_year ==1994; qui replace sample=1 if campus==101912017& rated_year ==2000; qui replace sample=1 if campus==123907002& rated_year ==1995; qui replace sample=1 if campus==57905008& rated_year ==1996; qui replace sample=1 if campus==188901002& rated_year ==1995; qui replace sample=1 if campus==61902001& rated_year ==1999; qui replace sample=1 if campus==15910001& rated_year ==2006; qui replace sample=1 if campus==20905001& rated_year ==2003; qui replace sample=1 if campus==220904001& rated_year ==2003; qui replace sample=1 if campus==31905001& rated_year ==2007; qui replace sample=1 if campus==37904002& rated_year ==2000; qui replace sample=1 if campus==31905001& rated_year ==2004; qui replace sample=1 if campus==243901001& rated_year ==1996; qui replace sample=1 if campus==31905001& rated_year ==2002; qui replace sample=1 if campus==31905001& rated_year ==2001; qui replace sample=1 if campus==204904001& rated_year ==1997; qui replace sample=1 if campus==31905001& rated_year ==1995; qui replace sample=1 if campus==227901006& rated_year ==2008; qui replace sample=1 if campus==139905001& rated_year ==2003; qui replace sample=1 if campus==25909001& rated_year ==2008; qui replace sample=1 if campus==167901001& rated_year ==2005; qui replace sample=1 if campus==145906001& rated_year ==1996; qui replace sample=1 if campus==149901001& rated_year ==2002; qui replace sample=1 if campus==170902005& rated_year ==1998; qui replace sample=1 if campus==15913001& rated_year ==2004; qui replace sample=1 if campus==107901001& rated_year ==2005; qui replace sample=1 if campus==90904001& rated_year ==1999; qui replace sample=1 if campus==34905002& rated_year ==2003; qui replace sample=1 if campus==19903001& rated_year ==2006; qui replace sample=1 if campus==31903003& rated_year ==2007; qui replace sample=1 if campus==31903003& rated_year ==2006; qui replace sample=1 if campus==128902001& rated_year ==2004; qui replace sample=1 if campus==31903003& rated_year ==2002; qui replace sample=1 if campus==220907001& rated_year ==1997; qui replace sample=1 if campus==102904002& rated_year ==1994; qui replace sample=1 if campus==31903003& rated_year ==1996; qui replace sample=1 if campus==101915001& rated_year ==2005; qui replace sample=1 if campus==31903002& rated_year ==2006; qui replace sample=1 if campus==31903002& rated_year ==2005; qui replace sample=1 if campus==60902001& rated_year ==2005; qui replace sample=1 if campus==31903002& rated_year ==2003; qui replace sample=1 if campus==120901001& rated_year ==2005; qui replace sample=1 if campus==14903001& rated_year ==1996; qui replace sample=1 if campus==7901001& rated_year ==1996; qui replace sample=1 if campus==49905001& rated_year ==1995; qui replace sample=1 if campus==31903002& rated_year ==1995; qui replace sample=1 if campus==31903001& rated_year ==2004; qui replace sample=1 if campus==133904001& rated_year ==2000; qui replace sample=1 if campus==19906001& rated_year ==1995; qui replace sample=1 if campus==101912002& rated_year ==2004; qui replace sample=1 if campus==31903001& rated_year ==1994; qui replace sample=1 if campus==98901001& rated_year ==2005; qui replace sample=1 if campus==8902001& rated_year ==1996; qui replace sample=1 if campus==236902002& rated_year ==2000; qui replace sample=1 if campus==2901001& rated_year ==2005; qui replace sample=1 if campus==126905001& rated_year ==1996; qui replace sample=1 if campus==108909003& rated_year ==2006; qui replace sample=1 if campus==227901008& rated_year ==1995; qui replace sample=1 if campus==36901001& rated_year ==2007; qui replace sample=1 if campus==20905001& rated_year ==2008; qui replace sample=1 if campus==210905001& rated_year ==2003; qui replace sample=1 if campus==35901001& rated_year ==2008; qui replace sample=1 if campus==125905001& rated_year ==1997; qui replace sample=1 if campus==243905004& rated_year ==1996; qui replace sample=1 if campus==92906002& rated_year ==2005; qui replace sample=1 if campus==168901001& rated_year ==2002; qui replace sample=1 if campus==126901001& rated_year ==2006; qui replace sample=1 if campus==184907001& rated_year ==2000; qui replace sample=1 if campus==183901001& rated_year ==2001; qui replace sample=1 if campus==31901007& rated_year ==2006; qui replace sample=1 if campus==150901001& rated_year ==2004; qui replace sample=1 if campus==84906001& rated_year ==2007; qui replace sample=1 if campus==100904001& rated_year ==1997; qui replace sample=1 if campus==31901007& rated_year ==1996; qui replace sample=1 if campus==31901007& rated_year ==1995; qui replace sample=1 if campus==1907001& rated_year ==2007; qui replace sample=1 if campus==229903001& rated_year ==2000; qui replace sample=1 if campus==31901004& rated_year ==2005; qui replace sample=1 if campus==201910002& rated_year ==2002; qui replace sample=1 if campus==146907001& rated_year ==1995; qui replace sample=1 if campus==33902001& rated_year ==2000; qui replace sample=1 if campus==31901004& rated_year ==1997; qui replace sample=1 if campus==165901042& rated_year ==1999; qui replace sample=1 if campus==31901003& rated_year ==2006; qui replace sample=1 if campus==97902001& rated_year ==2004; qui replace sample=1 if campus==31901003& rated_year ==2004; qui replace sample=1 if campus==31901003& rated_year ==2003; qui replace sample=1 if campus==101924001& rated_year ==1994; qui replace sample=1 if campus==220917001& rated_year ==2006; qui replace sample=1 if campus==161903001& rated_year ==2008; qui replace sample=1 if campus==66901001& rated_year ==2001; qui replace sample=1 if campus==214901001& rated_year ==2004; qui replace sample=1 if campus==66901001& rated_year ==2000; qui replace sample=1 if campus==31901003& rated_year ==1994; qui replace sample=1 if campus==205907001& rated_year ==2007; qui replace sample=1 if campus==43905001& rated_year ==1996; qui replace sample=1 if campus==31901002& rated_year ==2003; qui replace sample=1 if campus==249906001& rated_year ==2000; qui replace sample=1 if campus==71902011& rated_year ==2007; qui replace sample=1 if campus==220910001& rated_year ==2002; qui replace sample=1 if campus==123908001& rated_year ==2008; qui replace sample=1 if campus==3907001& rated_year ==2004; qui replace sample=1 if campus==31901001& rated_year ==2003; qui replace sample=1 if campus==212905001& rated_year ==2000; qui replace sample=1 if campus==251901001& rated_year ==2000; qui replace sample=1 if campus==116916001& rated_year ==2008; qui replace sample=1 if campus==101906001& rated_year ==2000; qui replace sample=1 if campus==149901001& rated_year ==1996; qui replace sample=1 if campus==220905006& rated_year ==2008; qui replace sample=1 if campus==70912002& rated_year ==1996; qui replace sample=1 if campus==249901001& rated_year ==2008; qui replace sample=1 if campus==128902001& rated_year ==2005; qui replace sample=1 if campus==204901001& rated_year ==2000; qui replace sample=1 if campus==27904001& rated_year ==2000; qui replace sample=1 if campus==45903001& rated_year ==2005; qui replace sample=1 if campus==30906001& rated_year ==2007; qui replace sample=1 if campus==249906001& rated_year ==2005; qui replace sample=1 if campus==101917003& rated_year ==1998; qui replace sample=1 if campus==43914001& rated_year ==2002; qui replace sample=1 if campus==147903002& rated_year ==1999; qui replace sample=1 if campus==235902002& rated_year ==1995; qui replace sample=1 if campus==30906001& rated_year ==1999; qui replace sample=1 if campus==2901001& rated_year ==1998; qui replace sample=1 if campus==30906001& rated_year ==1994; qui replace sample=1 if campus==182903001& rated_year ==2003; qui replace sample=1 if campus==57910002& rated_year ==2005; qui replace sample=1 if campus==146901001& rated_year ==1995; qui replace sample=1 if campus==101907007& rated_year ==2004; qui replace sample=1 if campus==31916003& rated_year ==2001; qui replace sample=1 if campus==108910001& rated_year ==2004; qui replace sample=1 if campus==39902001& rated_year ==2006; qui replace sample=1 if campus==128902001& rated_year ==1997; qui replace sample=1 if campus==250902001& rated_year ==2002; qui replace sample=1 if campus==31913001& rated_year ==1999; qui replace sample=1 if campus==101912016& rated_year ==2004; qui replace sample=1 if campus==220902002& rated_year ==2003; qui replace sample=1 if campus==234904001& rated_year ==1998; qui replace sample=1 if campus==107905001& rated_year ==2001; qui replace sample=1 if campus==30902001& rated_year ==2004; qui replace sample=1 if campus==72902001& rated_year ==2005; qui replace sample=1 if campus==30902001& rated_year ==1999; qui replace sample=1 if campus==31916001& rated_year ==1999; qui replace sample=1 if campus==101912015& rated_year ==2000; qui replace sample=1 if campus==30901001& rated_year ==2005; qui replace sample=1 if campus==101915001& rated_year ==2004; qui replace sample=1 if campus==71907001& rated_year ==2002; qui replace sample=1 if campus==82903001& rated_year ==2002; qui replace sample=1 if campus==30901001& rated_year ==1999; qui replace sample=1 if campus==57911001& rated_year ==1995; qui replace sample=1 if campus==205903001& rated_year ==1994; qui replace sample=1 if campus==15907004& rated_year ==1997; qui replace sample=1 if campus==15907004& rated_year ==2001; qui replace sample=1 if campus==243905001& rated_year ==2008; qui replace sample=1 if campus==94901001& rated_year ==2008; qui replace sample=1 if campus==245902001& rated_year ==1995; qui replace sample=1 if campus==91903001& rated_year ==2008; qui replace sample=1 if campus==75902001& rated_year ==2003; qui replace sample=1 if campus==251902001& rated_year ==1998; qui replace sample=1 if campus==101907007& rated_year ==1996; qui replace sample=1 if campus==107906001& rated_year ==2008; qui replace sample=1 if campus==27904001& rated_year ==2007; qui replace sample=1 if campus==170907001& rated_year ==2007; qui replace sample=1 if campus==33902001& rated_year ==2001; qui replace sample=1 if campus==246909004& rated_year ==1996; qui replace sample=1 if campus==15905003& rated_year ==2002; qui replace sample=1 if campus==29901001& rated_year ==2008; qui replace sample=1 if campus==29901001& rated_year ==2006; qui replace sample=1 if campus==107904001& rated_year ==1999; qui replace sample=1 if campus==10902001& rated_year ==2000; qui replace sample=1 if campus==57905026& rated_year ==2001; qui replace sample=1 if campus==29901001& rated_year ==1998; qui replace sample=1 if campus==11901001& rated_year ==1998; qui replace sample=1 if campus==71905005& rated_year ==2008; qui replace sample=1 if campus==101914005& rated_year ==2007; qui replace sample=1 if campus==84903001& rated_year ==2004; qui replace sample=1 if campus==49907001& rated_year ==2000; qui replace sample=1 if campus==246911001& rated_year ==2002; qui replace sample=1 if campus==27904001& rated_year ==1998; qui replace sample=1 if campus==189901001& rated_year ==2002; qui replace sample=1 if campus==120901001& rated_year ==1994; qui replace sample=1 if campus==163903001& rated_year ==2007; qui replace sample=1 if campus==36902001& rated_year ==2002; qui replace sample=1 if campus==37904002& rated_year ==1997; qui replace sample=1 if campus==57905002& rated_year ==2004; qui replace sample=1 if campus==72902001& rated_year ==1997; qui replace sample=1 if campus==108906001& rated_year ==1994; qui replace sample=1 if campus==116909001& rated_year ==1995; qui replace sample=1 if campus==28903001& rated_year ==2004; qui replace sample=1 if campus==153903001& rated_year ==1995; qui replace sample=1 if campus==79906001& rated_year ==1999; qui replace sample=1 if campus==91917001& rated_year ==1999; qui replace sample=1 if campus==133904001& rated_year ==2007; qui replace sample=1 if campus==19905001& rated_year ==2004; qui replace sample=1 if campus==152910001& rated_year ==2006; qui replace sample=1 if campus==170902005& rated_year ==2003; qui replace sample=1 if campus==249906001& rated_year ==1998; qui replace sample=1 if campus==130901001& rated_year ==2003; qui replace sample=1 if campus==34905002& rated_year ==1999; qui replace sample=1 if campus==178902001& rated_year ==1996; qui replace sample=1 if campus==82902001& rated_year ==2006; qui replace sample=1 if campus==28902001& rated_year ==2004; qui replace sample=1 if campus==101916001& rated_year ==2003; qui replace sample=1 if campus==188901005& rated_year ==2001; qui replace sample=1 if campus==79901001& rated_year ==1995; qui replace sample=1 if campus==116906001& rated_year ==2003; qui replace sample=1 if campus==28902001& rated_year ==1997; qui replace sample=1 if campus==1903001& rated_year ==1996; qui replace sample=1 if campus==20905002& rated_year ==2000; qui replace sample=1 if campus==70908001& rated_year ==2002; qui replace sample=1 if campus==205901001& rated_year ==2000; qui replace sample=1 if campus==57905024& rated_year ==1994; qui replace sample=1 if campus==147903002& rated_year ==1997; qui replace sample=1 if campus==127901001& rated_year ==2008; qui replace sample=1 if campus==34905002& rated_year ==2005; qui replace sample=1 if campus==116903001& rated_year ==2000; qui replace sample=1 if campus==182903001& rated_year ==1995; qui replace sample=1 if campus==15913001& rated_year ==2000; qui replace sample=1 if campus==98901001& rated_year ==2003; qui replace sample=1 if campus==129902001& rated_year ==2007; qui replace sample=1 if campus==57905008& rated_year ==2002; qui replace sample=1 if campus==232903002& rated_year ==2004; qui replace sample=1 if campus==27903001& rated_year ==2008; qui replace sample=1 if campus==27903001& rated_year ==2005; qui replace sample=1 if campus==181905001& rated_year ==2001; qui replace sample=1 if campus==181907001& rated_year ==1997; qui replace sample=1 if campus==27903001& rated_year ==2000; qui replace sample=1 if campus==27903001& rated_year ==1999; qui replace sample=1 if campus==163901001& rated_year ==2005; qui replace sample=1 if campus==247906001& rated_year ==2000; qui replace sample=1 if campus==27903001& rated_year ==1995; qui replace sample=1 if campus==27903001& rated_year ==1994; qui replace sample=1 if campus==43918001& rated_year ==2007; qui replace sample=1 if campus==15909001& rated_year ==1999; qui replace sample=1 if campus==250905001& rated_year ==2005; qui replace sample=1 if campus==26903002& rated_year ==2000; qui replace sample=1 if campus==220917001& rated_year ==2004; qui replace sample=1 if campus==188903001& rated_year ==2001; qui replace sample=1 if campus==71903001& rated_year ==1994; qui replace sample=1 if campus==31901007& rated_year ==2007; qui replace sample=1 if campus==126902001& rated_year ==2004; qui replace sample=1 if campus==43918001& rated_year ==1999; qui replace sample=1 if campus==26902001& rated_year ==2005; qui replace sample=1 if campus==26902001& rated_year ==1997; qui replace sample=1 if campus==71903001& rated_year ==1995; qui replace sample=1 if campus==26902001& rated_year ==1994; qui replace sample=1 if campus==57920002& rated_year ==2005; qui replace sample=1 if campus==214901001& rated_year ==1997; qui replace sample=1 if campus==47901001& rated_year ==2000; qui replace sample=1 if campus==95905001& rated_year ==1997; qui replace sample=1 if campus==71903001& rated_year ==2000; qui replace sample=1 if campus==26901001& rated_year ==2006; qui replace sample=1 if campus==246909003& rated_year ==2006; qui replace sample=1 if campus==178909001& rated_year ==2001; qui replace sample=1 if campus==214901001& rated_year ==2000; qui replace sample=1 if campus==15909001& rated_year ==2006; qui replace sample=1 if campus==227901004& rated_year ==2005; qui replace sample=1 if campus==236902002& rated_year ==2007; qui replace sample=1 if campus==144902001& rated_year ==1994; qui replace sample=1 if campus==57905007& rated_year ==1994; qui replace sample=1 if campus==232902001& rated_year ==1997; qui replace sample=1 if campus==57905039& rated_year ==2003; qui replace sample=1 if campus==57905036& rated_year ==2008; qui replace sample=1 if campus==176901001& rated_year ==2007; qui replace sample=1 if campus==212903001& rated_year ==2006; qui replace sample=1 if campus==25909001& rated_year ==1999; qui replace sample=1 if campus==25909001& rated_year ==1997; qui replace sample=1 if campus==92902002& rated_year ==2003; qui replace sample=1 if campus==161901001& rated_year ==1996; qui replace sample=1 if campus==108902001& rated_year ==1995; qui replace sample=1 if campus==57905026& rated_year ==1995; qui replace sample=1 if campus==101912009& rated_year ==2002; qui replace sample=1 if campus==101903001& rated_year ==1996; qui replace sample=1 if campus==91913001& rated_year ==2007; qui replace sample=1 if campus==3905001& rated_year ==1995; qui replace sample=1 if campus==31916004& rated_year ==2000; qui replace sample=1 if campus==108912001& rated_year ==2001; qui replace sample=1 if campus==109905001& rated_year ==1994; qui replace sample=1 if campus==220912001& rated_year ==2006; qui replace sample=1 if campus==57909002& rated_year ==1997; qui replace sample=1 if campus==116903001& rated_year ==2002; qui replace sample=1 if campus==220910001& rated_year ==2004; qui replace sample=1 if campus==70903002& rated_year ==2007; qui replace sample=1 if campus==240903001& rated_year ==1994; qui replace sample=1 if campus==101912015& rated_year ==2008; qui replace sample=1 if campus==61902002& rated_year ==2002; qui replace sample=1 if campus==170902005& rated_year ==2006; qui replace sample=1 if campus==113902002& rated_year ==2004; qui replace sample=1 if campus==244903001& rated_year ==1998; qui replace sample=1 if campus==75902001& rated_year ==2002; qui replace sample=1 if campus==15913001& rated_year ==1996; qui replace sample=1 if campus==180902001& rated_year ==2003; qui replace sample=1 if campus==236902002& rated_year ==2003; qui replace sample=1 if campus==92902002& rated_year ==2002; qui replace sample=1 if campus==43918001& rated_year ==1996; qui replace sample=1 if campus==57912002& rated_year ==1996; qui replace sample=1 if campus==124901001& rated_year ==2004; qui replace sample=1 if campus==117901001& rated_year ==2003; qui replace sample=1 if campus==117901001& rated_year ==2006; qui replace sample=1 if campus==101907002& rated_year ==1995; qui replace sample=1 if campus==67903001& rated_year ==1996; qui replace sample=1 if campus==84901001& rated_year ==1996; qui replace sample=1 if campus==129903001& rated_year ==2000; qui replace sample=1 if campus==79910001& rated_year ==2000; qui replace sample=1 if campus==25901001& rated_year ==2003; qui replace sample=1 if campus==70905002& rated_year ==1997; qui replace sample=1 if campus==3904001& rated_year ==1995; qui replace sample=1 if campus==111901001& rated_year ==1994; qui replace sample=1 if campus==13905001& rated_year ==1998; qui replace sample=1 if campus==101913002& rated_year ==2002; qui replace sample=1 if campus==37904002& rated_year ==1994; qui replace sample=1 if campus==71902008& rated_year ==1999; qui replace sample=1 if campus==207901001& rated_year ==2001; qui replace sample=1 if campus==101909002& rated_year ==2004; qui replace sample=1 if campus==24901001& rated_year ==1997; qui replace sample=1 if campus==84911001& rated_year ==1997; qui replace sample=1 if campus==101902004& rated_year ==1999; qui replace sample=1 if campus==71902002& rated_year ==2003; qui replace sample=1 if campus==50910001& rated_year ==1997; qui replace sample=1 if campus==15916001& rated_year ==1998; qui replace sample=1 if campus==20905002& rated_year ==1994; qui replace sample=1 if campus==220905009& rated_year ==1997; qui replace sample=1 if campus==102906001& rated_year ==2008; qui replace sample=1 if campus==121905001& rated_year ==2004; qui replace sample=1 if campus==61905001& rated_year ==2007; qui replace sample=1 if campus==165901044& rated_year ==1998; qui replace sample=1 if campus==101917001& rated_year ==2008; qui replace sample=1 if campus==210903002& rated_year ==2000; qui replace sample=1 if campus==158906002& rated_year ==2006; qui replace sample=1 if campus==178904004& rated_year ==2006; qui replace sample=1 if campus==35901001& rated_year ==2001; qui replace sample=1 if campus==245902001& rated_year ==2003; qui replace sample=1 if campus==22901001& rated_year ==2007; qui replace sample=1 if campus==156902001& rated_year ==1995; qui replace sample=1 if campus==22901001& rated_year ==2004; qui replace sample=1 if campus==248902001& rated_year ==2008; qui replace sample=1 if campus==161921001& rated_year ==2004; qui replace sample=1 if campus==75902001& rated_year ==2004; qui replace sample=1 if campus==22901001& rated_year ==1996; qui replace sample=1 if campus==101913002& rated_year ==2001; qui replace sample=1 if campus==181905001& rated_year ==1995; qui replace sample=1 if campus==117903001& rated_year ==2001; qui replace sample=1 if campus==71905005& rated_year ==1999; qui replace sample=1 if campus==209901001& rated_year ==2004; qui replace sample=1 if campus==102905001& rated_year ==1997; qui replace sample=1 if campus==57914001& rated_year ==1998; qui replace sample=1 if campus==101907002& rated_year ==2005; qui replace sample=1 if campus==246909003& rated_year ==1996; qui replace sample=1 if campus==57905009& rated_year ==1998; qui replace sample=1 if campus==172902001& rated_year ==2003; qui replace sample=1 if campus==101912009& rated_year ==2001; qui replace sample=1 if campus==101907007& rated_year ==2003; qui replace sample=1 if campus==14910001& rated_year ==1995; qui replace sample=1 if campus==91917001& rated_year ==1995; qui replace sample=1 if campus==79910001& rated_year ==2007; qui replace sample=1 if campus==101910002& rated_year ==1995; qui replace sample=1 if campus==28902001& rated_year ==2003; qui replace sample=1 if campus==15907005& rated_year ==1994; qui replace sample=1 if campus==67903001& rated_year ==1999; qui replace sample=1 if campus==170908001& rated_year ==2000; qui replace sample=1 if campus==240901002& rated_year ==2003; qui replace sample=1 if campus==120901001& rated_year ==1997; qui replace sample=1 if campus==72903001& rated_year ==2002; qui replace sample=1 if campus==158905001& rated_year ==2001; qui replace sample=1 if campus==42901001& rated_year ==2008; qui replace sample=1 if campus==153904001& rated_year ==2006; qui replace sample=1 if campus==43907002& rated_year ==1994; qui replace sample=1 if campus==21902001& rated_year ==2007; qui replace sample=1 if campus==227901013& rated_year ==2001; qui replace sample=1 if campus==102906001& rated_year ==1997; qui replace sample=1 if campus==21902001& rated_year ==2002; qui replace sample=1 if campus==187904001& rated_year ==2003; qui replace sample=1 if campus==21902001& rated_year ==1997; qui replace sample=1 if campus==21902001& rated_year ==1996; qui replace sample=1 if campus==21902001& rated_year ==2001; qui replace sample=1 if campus==179901001& rated_year ==2004; qui replace sample=1 if campus==37904002& rated_year ==2006; qui replace sample=1 if campus==161919001& rated_year ==1998; qui replace sample=1 if campus==175902001& rated_year ==1995; qui replace sample=1 if campus==101906001& rated_year ==2006; qui replace sample=1 if campus==71902009& rated_year ==1994; qui replace sample=1 if campus==163908001& rated_year ==1995; qui replace sample=1 if campus==102902001& rated_year ==1997; qui replace sample=1 if campus==21901001& rated_year ==2003; qui replace sample=1 if campus==21901001& rated_year ==2002; qui replace sample=1 if campus==101919001& rated_year ==2006; qui replace sample=1 if campus==31916003& rated_year ==2007; qui replace sample=1 if campus==230908001& rated_year ==2006; qui replace sample=1 if campus==21901001& rated_year ==1995; qui replace sample=1 if campus==220910001& rated_year ==1998; qui replace sample=1 if campus==61906001& rated_year ==2002; qui replace sample=1 if campus==161903001& rated_year ==2003; qui replace sample=1 if campus==97903001& rated_year ==2005; qui replace sample=1 if campus==101915003& rated_year ==1995; qui replace sample=1 if campus==100905001& rated_year ==2001; qui replace sample=1 if campus==205902001& rated_year ==2005; qui replace sample=1 if campus==57905024& rated_year ==1995; qui replace sample=1 if campus==50902001& rated_year ==2008; qui replace sample=1 if campus==201913001& rated_year ==2001; qui replace sample=1 if campus==209901001& rated_year ==1999; qui replace sample=1 if campus==79907002& rated_year ==1994; qui replace sample=1 if campus==184909001& rated_year ==1999; qui replace sample=1 if campus==102901002& rated_year ==2006; qui replace sample=1 if campus==43910007& rated_year ==2006; qui replace sample=1 if campus==133901001& rated_year ==1999; qui replace sample=1 if campus==70915001& rated_year ==1997; qui replace sample=1 if campus==15917001& rated_year ==2000; qui replace sample=1 if campus==20908001& rated_year ==2008; qui replace sample=1 if campus==11902001& rated_year ==2007; qui replace sample=1 if campus==9901001& rated_year ==1997; qui replace sample=1 if campus==172905002& rated_year ==2007; qui replace sample=1 if campus==155901002& rated_year ==2004; qui replace sample=1 if campus==20908001& rated_year ==1999; qui replace sample=1 if campus==101912005& rated_year ==1998; qui replace sample=1 if campus==19908001& rated_year ==2004; qui replace sample=1 if campus==174902001& rated_year ==2005; qui replace sample=1 if campus==183902001& rated_year ==2006; qui replace sample=1 if campus==205902001& rated_year ==1994; qui replace sample=1 if campus==20907001& rated_year ==2008; qui replace sample=1 if campus==20907001& rated_year ==2006; qui replace sample=1 if campus==20907001& rated_year ==2004; qui replace sample=1 if campus==57905006& rated_year ==1998; qui replace sample=1 if campus==108914001& rated_year ==2004; qui replace sample=1 if campus==144902001& rated_year ==1995; qui replace sample=1 if campus==101919001& rated_year ==2002; qui replace sample=1 if campus==80901001& rated_year ==1994; qui replace sample=1 if campus==44902001& rated_year ==1998; qui replace sample=1 if campus==30901001& rated_year ==1996; qui replace sample=1 if campus==183901001& rated_year ==2005; qui replace sample=1 if campus==71905003& rated_year ==1996; qui replace sample=1 if campus==6902001& rated_year ==2007; qui replace sample=1 if campus==101907004& rated_year ==1998; qui replace sample=1 if campus==71905007& rated_year ==1996; qui replace sample=1 if campus==190903001& rated_year ==1995; qui replace sample=1 if campus==20906002& rated_year ==2006; qui replace sample=1 if campus==20906002& rated_year ==2005; qui replace sample=1 if campus==101915003& rated_year ==2008; qui replace sample=1 if campus==250903001& rated_year ==1996; qui replace sample=1 if campus==169902001& rated_year ==1997; qui replace sample=1 if campus==146907001& rated_year ==1999; qui replace sample=1 if campus==240903002& rated_year ==1994; qui replace sample=1 if campus==14908001& rated_year ==1997; qui replace sample=1 if campus==175907001& rated_year ==2008; qui replace sample=1 if campus==79907004& rated_year ==1998; qui replace sample=1 if campus==141902001& rated_year ==1996; qui replace sample=1 if campus==80901001& rated_year ==1999; qui replace sample=1 if campus==116903001& rated_year ==2004; qui replace sample=1 if campus==212905003& rated_year ==1994; qui replace sample=1 if campus==215901001& rated_year ==1994; qui replace sample=1 if campus==15915006& rated_year ==2004; qui replace sample=1 if campus==31916003& rated_year ==1998; qui replace sample=1 if campus==176903001& rated_year ==2003; qui replace sample=1 if campus==243902001& rated_year ==2001; qui replace sample=1 if campus==70905002& rated_year ==2004; qui replace sample=1 if campus==101903002& rated_year ==2006; qui replace sample=1 if campus==237902001& rated_year ==2005; qui replace sample=1 if campus==20905002& rated_year ==2008; qui replace sample=1 if campus==184908001& rated_year ==2005; qui replace sample=1 if campus==230906001& rated_year ==2000; qui replace sample=1 if campus==214903001& rated_year ==1996; qui replace sample=1 if campus==20905002& rated_year ==2001; qui replace sample=1 if campus==101907007& rated_year ==2005; qui replace sample=1 if campus==20905002& rated_year ==1999; qui replace sample=1 if campus==20905002& rated_year ==1998; qui replace sample=1 if campus==167901001& rated_year ==1995; qui replace sample=1 if campus==99903001& rated_year ==2006; qui replace sample=1 if campus==194903001& rated_year ==2001; qui replace sample=1 if campus==165901042& rated_year ==2001; qui replace sample=1 if campus==20905001& rated_year ==2000; qui replace sample=1 if campus==57920002& rated_year ==1997; qui replace sample=1 if campus==220907001& rated_year ==2000; qui replace sample=1 if campus==20905001& rated_year ==1995; qui replace sample=1 if campus==147903002& rated_year ==2008; qui replace sample=1 if campus==20904001& rated_year ==2005; qui replace sample=1 if campus==20904001& rated_year ==2003; qui replace sample=1 if campus==20904001& rated_year ==2001; qui replace sample=1 if campus==105906001& rated_year ==2007; qui replace sample=1 if campus==71905004& rated_year ==2000; qui replace sample=1 if campus==137903001& rated_year ==1996; qui replace sample=1 if campus==188901005& rated_year ==1997; qui replace sample=1 if campus==232902001& rated_year ==2004; qui replace sample=1 if campus==139905001& rated_year ==2000; qui replace sample=1 if campus==178904002& rated_year ==1998; qui replace sample=1 if campus==1903001& rated_year ==2000; qui replace sample=1 if campus==71906001& rated_year ==2000; qui replace sample=1 if campus==198905002& rated_year ==1995; qui replace sample=1 if campus==15909001& rated_year ==2004; qui replace sample=1 if campus==39903001& rated_year ==1995; qui replace sample=1 if campus==30906001& rated_year ==1996; qui replace sample=1 if campus==121905001& rated_year ==2001; qui replace sample=1 if campus==101912012& rated_year ==2005; qui replace sample=1 if campus==158905001& rated_year ==1997; qui replace sample=1 if campus==188901004& rated_year ==1996; qui replace sample=1 if campus==220905004& rated_year ==2002; qui replace sample=1 if campus==101903002& rated_year ==2002; qui replace sample=1 if campus==101917001& rated_year ==1994; qui replace sample=1 if campus==20902001& rated_year ==2005; qui replace sample=1 if campus==85902001& rated_year ==2005; qui replace sample=1 if campus==114901001& rated_year ==1996; qui replace sample=1 if campus==20902001& rated_year ==1995; qui replace sample=1 if campus==220905014& rated_year ==1994; qui replace sample=1 if campus==161922001& rated_year ==2003; qui replace sample=1 if campus==246907001& rated_year ==2006; qui replace sample=1 if campus==7902001& rated_year ==2001; qui replace sample=1 if campus==163903001& rated_year ==1999; qui replace sample=1 if campus==156902001& rated_year ==2002; qui replace sample=1 if campus==213901001& rated_year ==1994; qui replace sample=1 if campus==20901001& rated_year ==2007; qui replace sample=1 if campus==20901001& rated_year ==2005; qui replace sample=1 if campus==20901001& rated_year ==2003; qui replace sample=1 if campus==161914002& rated_year ==1994; qui replace sample=1 if campus==31901004& rated_year ==2007; qui replace sample=1 if campus==19912001& rated_year ==2007; qui replace sample=1 if campus==227913001& rated_year ==1996; qui replace sample=1 if campus==105905001& rated_year ==2000; qui replace sample=1 if campus==113902002& rated_year ==2002; qui replace sample=1 if campus==37901001& rated_year ==1999; qui replace sample=1 if campus==19912001& rated_year ==1994; qui replace sample=1 if campus==243903001& rated_year ==2001; qui replace sample=1 if campus==11901001& rated_year ==2002; qui replace sample=1 if campus==199902002& rated_year ==1998; qui replace sample=1 if campus==79907004& rated_year ==2006; qui replace sample=1 if campus==19909001& rated_year ==2007; qui replace sample=1 if campus==113903002& rated_year ==2004; qui replace sample=1 if campus==19909001& rated_year ==2005; qui replace sample=1 if campus==125903001& rated_year ==1998; qui replace sample=1 if campus==116909001& rated_year ==2007; qui replace sample=1 if campus==63903001& rated_year ==1997; qui replace sample=1 if campus==220905004& rated_year ==1994; qui replace sample=1 if campus==91917001& rated_year ==2006; qui replace sample=1 if campus==105902001& rated_year ==2007; qui replace sample=1 if campus==15907182& rated_year ==1996; qui replace sample=1 if campus==68901003& rated_year ==1998; qui replace sample=1 if campus==15908001& rated_year ==2002; qui replace sample=1 if campus==101902002& rated_year ==2002; qui replace sample=1 if campus==123910008& rated_year ==2008; qui replace sample=1 if campus==196902001& rated_year ==1997; qui replace sample=1 if campus==75902001& rated_year ==2006; qui replace sample=1 if campus==57905036& rated_year ==1998; qui replace sample=1 if campus==91918001& rated_year ==2008; qui replace sample=1 if campus==129905001& rated_year ==2005; qui replace sample=1 if campus==57905024& rated_year ==2003; qui replace sample=1 if campus==57906001& rated_year ==2000; qui replace sample=1 if campus==19908001& rated_year ==2005; qui replace sample=1 if campus==200902001& rated_year ==2004; qui replace sample=1 if campus==214901001& rated_year ==2001; qui replace sample=1 if campus==126905001& rated_year ==1999; qui replace sample=1 if campus==234903001& rated_year ==1996; qui replace sample=1 if campus==227913001& rated_year ==1999; qui replace sample=1 if campus==43901001& rated_year ==2004; qui replace sample=1 if campus==71905007& rated_year ==2003; qui replace sample=1 if campus==8902001& rated_year ==2002; qui replace sample=1 if campus==84903001& rated_year ==2002; qui replace sample=1 if campus==220905011& rated_year ==2008; qui replace sample=1 if campus==220905001& rated_year ==2005; qui replace sample=1 if campus==101907002& rated_year ==2001; qui replace sample=1 if campus==184903001& rated_year ==1997; qui replace sample=1 if campus==220905006& rated_year ==2005; qui replace sample=1 if campus==199902002& rated_year ==1994; qui replace sample=1 if campus==67902001& rated_year ==1994; qui replace sample=1 if campus==101906001& rated_year ==2003; qui replace sample=1 if campus==71902003& rated_year ==2006; qui replace sample=1 if campus==43901001& rated_year ==2000; qui replace sample=1 if campus==8902001& rated_year ==1995; qui replace sample=1 if campus==15915004& rated_year ==2000; qui replace sample=1 if campus==91908001& rated_year ==1999; qui replace sample=1 if campus==19907002& rated_year ==2004; qui replace sample=1 if campus==19907002& rated_year ==2003; qui replace sample=1 if campus==101912034& rated_year ==1998; qui replace sample=1 if campus==110907001& rated_year ==2000; qui replace sample=1 if campus==19907002& rated_year ==1998; qui replace sample=1 if campus==233901002& rated_year ==1997; qui replace sample=1 if campus==19907002& rated_year ==1996; qui replace sample=1 if campus==196903001& rated_year ==2004; qui replace sample=1 if campus==69902001& rated_year ==1995; qui replace sample=1 if campus==205902001& rated_year ==1997; qui replace sample=1 if campus==19906001& rated_year ==2001; qui replace sample=1 if campus==19906001& rated_year ==2000; qui replace sample=1 if campus==49901001& rated_year ==1994; qui replace sample=1 if campus==101912017& rated_year ==2002; qui replace sample=1 if campus==190903001& rated_year ==2004; qui replace sample=1 if campus==129910001& rated_year ==2007; qui replace sample=1 if campus==31916003& rated_year ==1995; qui replace sample=1 if campus==95901001& rated_year ==2005; qui replace sample=1 if campus==19905001& rated_year ==2002; qui replace sample=1 if campus==15907001& rated_year ==2004; qui replace sample=1 if campus==234902001& rated_year ==2008; qui replace sample=1 if campus==108911001& rated_year ==2000; qui replace sample=1 if campus==176902002& rated_year ==2008; qui replace sample=1 if campus==49903001& rated_year ==2005; qui replace sample=1 if campus==68901002& rated_year ==2005; qui replace sample=1 if campus==248902001& rated_year ==2005; qui replace sample=1 if campus==42901001& rated_year ==2007; qui replace sample=1 if campus==57905014& rated_year ==1999; qui replace sample=1 if campus==220920001& rated_year ==2005; qui replace sample=1 if campus==24901001& rated_year ==2002; qui replace sample=1 if campus==57905039& rated_year ==1997; qui replace sample=1 if campus==19903001& rated_year ==1995; qui replace sample=1 if campus==43910005& rated_year ==2007; qui replace sample=1 if campus==245903001& rated_year ==2000; qui replace sample=1 if campus==174904002& rated_year ==2007; qui replace sample=1 if campus==57909002& rated_year ==2005; qui replace sample=1 if campus==14907001& rated_year ==1994; qui replace sample=1 if campus==220905016& rated_year ==2002; qui replace sample=1 if campus==19902002& rated_year ==1994; qui replace sample=1 if campus==128902001& rated_year ==2008; qui replace sample=1 if campus==231901001& rated_year ==2006; qui replace sample=1 if campus==57905013& rated_year ==2001; qui replace sample=1 if campus==19901001& rated_year ==2001; qui replace sample=1 if campus==84910003& rated_year ==2008; qui replace sample=1 if campus==19901001& rated_year ==1994; qui replace sample=1 if campus==11902001& rated_year ==2008; qui replace sample=1 if campus==70907001& rated_year ==2000; qui replace sample=1 if campus==74917001& rated_year ==2008; qui replace sample=1 if campus==71902009& rated_year ==2001; qui replace sample=1 if campus==187904001& rated_year ==1999; qui replace sample=1 if campus==31901004& rated_year ==2000; qui replace sample=1 if campus==101912002& rated_year ==2003; qui replace sample=1 if campus==198903001& rated_year ==1994; qui replace sample=1 if campus==111901001& rated_year ==2002; qui replace sample=1 if campus==134901001& rated_year ==1999; qui replace sample=1 if campus==161909001& rated_year ==2008; qui replace sample=1 if campus==31913001& rated_year ==1995; qui replace sample=1 if campus==120905001& rated_year ==2006; qui replace sample=1 if campus==221912001& rated_year ==2008; qui replace sample=1 if campus==230908001& rated_year ==1998; qui replace sample=1 if campus==18907001& rated_year ==2004; qui replace sample=1 if campus==108911001& rated_year ==2004; qui replace sample=1 if campus==18907001& rated_year ==2001; qui replace sample=1 if campus==18901001& rated_year ==1997; qui replace sample=1 if campus==18907001& rated_year ==1996; qui replace sample=1 if campus==212905003& rated_year ==1999; qui replace sample=1 if campus==205905001& rated_year ==2008; qui replace sample=1 if campus==108916001& rated_year ==1998; qui replace sample=1 if campus==101902005& rated_year ==2005; qui replace sample=1 if campus==134901001& rated_year ==2002; qui replace sample=1 if campus==101912015& rated_year ==1998; qui replace sample=1 if campus==61902004& rated_year ==1997; qui replace sample=1 if campus==226903002& rated_year ==2001; qui replace sample=1 if campus==210902001& rated_year ==1996; qui replace sample=1 if campus==61902004& rated_year ==1996; qui replace sample=1 if campus==101915001& rated_year ==2000; qui replace sample=1 if campus==152910001& rated_year ==2005; qui replace sample=1 if campus==67903001& rated_year ==1997; qui replace sample=1 if campus==90904001& rated_year ==1994; qui replace sample=1 if campus==101917001& rated_year ==2002; qui replace sample=1 if campus==227901013& rated_year ==1999; qui replace sample=1 if campus==182902001& rated_year ==2000; qui replace sample=1 if campus==246909004& rated_year ==1999; qui replace sample=1 if campus==18902001& rated_year ==2007; qui replace sample=1 if campus==18902001& rated_year ==2005; qui replace sample=1 if campus==15904001& rated_year ==2008; qui replace sample=1 if campus==18902001& rated_year ==1999; qui replace sample=1 if campus==18902001& rated_year ==1997; qui replace sample=1 if campus==220915001& rated_year ==2006; qui replace sample=1 if campus==18901001& rated_year ==2007; qui replace sample=1 if campus==18901001& rated_year ==2005; qui replace sample=1 if campus==161914002& rated_year ==2008; qui replace sample=1 if campus==246907001& rated_year ==2003; qui replace sample=1 if campus==211902001& rated_year ==2002; qui replace sample=1 if campus==182902001& rated_year ==2006; qui replace sample=1 if campus==184903001& rated_year ==1996; qui replace sample=1 if campus==16902001& rated_year ==2007; qui replace sample=1 if campus==16902001& rated_year ==2006; qui replace sample=1 if campus==16902001& rated_year ==2005; qui replace sample=1 if campus==16902001& rated_year ==2004; qui replace sample=1 if campus==71902005& rated_year ==2006; qui replace sample=1 if campus==119902001& rated_year ==1998; qui replace sample=1 if campus==16902001& rated_year ==1997; qui replace sample=1 if campus==1903001& rated_year ==1999; qui replace sample=1 if campus==15908001& rated_year ==1994; qui replace sample=1 if campus==57913001& rated_year ==2006; qui replace sample=1 if campus==16901001& rated_year ==2000; qui replace sample=1 if campus==45902001& rated_year ==1998; qui replace sample=1 if campus==91918001& rated_year ==1997; qui replace sample=1 if campus==57914003& rated_year ==2008; qui replace sample=1 if campus==20907001& rated_year ==1997; qui replace sample=1 if campus==14906001& rated_year ==1996; qui replace sample=1 if campus==99903001& rated_year ==2008; qui replace sample=1 if campus==107905001& rated_year ==2002; qui replace sample=1 if campus==43911001& rated_year ==2006; qui replace sample=1 if campus==34907001& rated_year ==2003; qui replace sample=1 if campus==14905001& rated_year ==2000; qui replace sample=1 if campus==202903001& rated_year ==1996; qui replace sample=1 if campus==15917001& rated_year ==2006; qui replace sample=1 if campus==57905034& rated_year ==2008; qui replace sample=1 if campus==102903002& rated_year ==2003; qui replace sample=1 if campus==15917001& rated_year ==2002; qui replace sample=1 if campus==108906006& rated_year ==1994; qui replace sample=1 if campus==70908001& rated_year ==1998; qui replace sample=1 if campus==236902002& rated_year ==2002; qui replace sample=1 if campus==43910007& rated_year ==1995; qui replace sample=1 if campus==50902001& rated_year ==1997; qui replace sample=1 if campus==152902001& rated_year ==2004; qui replace sample=1 if campus==38901001& rated_year ==2001; qui replace sample=1 if campus==21902001& rated_year ==1994; qui replace sample=1 if campus==43901001& rated_year ==2001; qui replace sample=1 if campus==121903001& rated_year ==2006; qui replace sample=1 if campus==31901002& rated_year ==2006; qui replace sample=1 if campus==161908002& rated_year ==1997; qui replace sample=1 if campus==57905009& rated_year ==2008; qui replace sample=1 if campus==184903001& rated_year ==2005; qui replace sample=1 if campus==161914003& rated_year ==2007; qui replace sample=1 if campus==57907003& rated_year ==2004; qui replace sample=1 if campus==57905025& rated_year ==1999; qui replace sample=1 if campus==212905001& rated_year ==1996; qui replace sample=1 if campus==15916001& rated_year ==2005; qui replace sample=1 if campus==133901001& rated_year ==2003; qui replace sample=1 if campus==129904001& rated_year ==2004; qui replace sample=1 if campus==15916001& rated_year ==2001; qui replace sample=1 if campus==40901001& rated_year ==2004; qui replace sample=1 if campus==200902001& rated_year ==2003; qui replace sample=1 if campus==57904001& rated_year ==2004; qui replace sample=1 if campus==15916001& rated_year ==1997; qui replace sample=1 if campus==15916001& rated_year ==1996; qui replace sample=1 if campus==15916001& rated_year ==1994; qui replace sample=1 if campus==137903001& rated_year ==2007; qui replace sample=1 if campus==152909001& rated_year ==2005; qui replace sample=1 if campus==25902001& rated_year ==1999; qui replace sample=1 if campus==129910001& rated_year ==1999; qui replace sample=1 if campus==121905001& rated_year ==1997; qui replace sample=1 if campus==26903002& rated_year ==1995; qui replace sample=1 if campus==146905001& rated_year ==1998; qui replace sample=1 if campus==129902001& rated_year ==1999; qui replace sample=1 if campus==15901001& rated_year ==2003; qui replace sample=1 if campus==61905001& rated_year ==1996; qui replace sample=1 if campus==243901001& rated_year ==2002; qui replace sample=1 if campus==227901003& rated_year ==2005; qui replace sample=1 if campus==101905001& rated_year ==2002; qui replace sample=1 if campus==71905007& rated_year ==1995; qui replace sample=1 if campus==178904002& rated_year ==1996; qui replace sample=1 if campus==105902001& rated_year ==2005; qui replace sample=1 if campus==227901009& rated_year ==2002; qui replace sample=1 if campus==58906001& rated_year ==2001; qui replace sample=1 if campus==183901001& rated_year ==1999; qui replace sample=1 if campus==31914001& rated_year ==2001; qui replace sample=1 if campus==97903001& rated_year ==2008; qui replace sample=1 if campus==15907005& rated_year ==1996; qui replace sample=1 if campus==153904001& rated_year ==2004; qui replace sample=1 if campus==71902001& rated_year ==2006; qui replace sample=1 if campus==178915001& rated_year ==2000; qui replace sample=1 if campus==57905033& rated_year ==1996; qui replace sample=1 if campus==109905001& rated_year ==1995; qui replace sample=1 if campus==105905001& rated_year ==2006; qui replace sample=1 if campus==211902001& rated_year ==1995; qui replace sample=1 if campus==37901001& rated_year ==1995; qui replace sample=1 if campus==31909001& rated_year ==2006; qui replace sample=1 if campus==43918001& rated_year ==2001; qui replace sample=1 if campus==243901001& rated_year ==2003; qui replace sample=1 if campus==114904001& rated_year ==2000; qui replace sample=1 if campus==182902001& rated_year ==2004; qui replace sample=1 if campus==101912014& rated_year ==2005; qui replace sample=1 if campus==125903001& rated_year ==2007; qui replace sample=1 if campus==240901001& rated_year ==2003; qui replace sample=1 if campus==101914002& rated_year ==2007; qui replace sample=1 if campus==152910001& rated_year ==1995; qui replace sample=1 if campus==47902001& rated_year ==1996; qui replace sample=1 if campus==101903001& rated_year ==2001; qui replace sample=1 if campus==91918001& rated_year ==2003; qui replace sample=1 if campus==79907004& rated_year ==2005; qui replace sample=1 if campus==241902001& rated_year ==2006; qui replace sample=1 if campus==3904001& rated_year ==2006; qui replace sample=1 if campus==147903002& rated_year ==2006; qui replace sample=1 if campus==184903001& rated_year ==1994; qui replace sample=1 if campus==249905001& rated_year ==2004; qui replace sample=1 if campus==205902001& rated_year ==2004; qui replace sample=1 if campus==43901001& rated_year ==1995; qui replace sample=1 if campus==250904001& rated_year ==1995; qui replace sample=1 if campus==3907001& rated_year ==1999; qui replace sample=1 if campus==146904001& rated_year ==1995; qui replace sample=1 if campus==71902001& rated_year ==2002; qui replace sample=1 if campus==79901002& rated_year ==1999; qui replace sample=1 if campus==145911002& rated_year ==2004; qui replace sample=1 if campus==210902001& rated_year ==2008; qui replace sample=1 if campus==35902001& rated_year ==2003; qui replace sample=1 if campus==15917001& rated_year ==2003; qui replace sample=1 if campus==101909002& rated_year ==2008; qui replace sample=1 if campus==212909001& rated_year ==1997; qui replace sample=1 if campus==71906001& rated_year ==1997; qui replace sample=1 if campus==227910001& rated_year ==1995; qui replace sample=1 if campus==169901001& rated_year ==1997; qui replace sample=1 if campus==153903001& rated_year ==1996; qui replace sample=1 if campus==14909002& rated_year ==2000; qui replace sample=1 if campus==14910001& rated_year ==2004; qui replace sample=1 if campus==43910005& rated_year ==1999; qui replace sample=1 if campus==200901001& rated_year ==2000; qui replace sample=1 if campus==29901001& rated_year ==2004; qui replace sample=1 if campus==170907001& rated_year ==1996; qui replace sample=1 if campus==152909001& rated_year ==2007; qui replace sample=1 if campus==15915004& rated_year ==1995; qui replace sample=1 if campus==65901001& rated_year ==1996; qui replace sample=1 if campus==100908001& rated_year ==1996; qui replace sample=1 if campus==170904002& rated_year ==2008; qui replace sample=1 if campus==20907001& rated_year ==1994; qui replace sample=1 if campus==15907008& rated_year ==1995; qui replace sample=1 if campus==169901001& rated_year ==1995; qui replace sample=1 if campus==254901001& rated_year ==1997; qui replace sample=1 if campus==15915007& rated_year ==2006; qui replace sample=1 if campus==57914003& rated_year ==1995; qui replace sample=1 if campus==221901001& rated_year ==1996; qui replace sample=1 if campus==163908001& rated_year ==2007; qui replace sample=1 if campus==92901001& rated_year ==1994; qui replace sample=1 if campus==5902001& rated_year ==2006; qui replace sample=1 if campus==15915006& rated_year ==2005; qui replace sample=1 if campus==57905024& rated_year ==2000; qui replace sample=1 if campus==71905003& rated_year ==1998; qui replace sample=1 if campus==189901001& rated_year ==2008; qui replace sample=1 if campus==136901001& rated_year ==1996; qui replace sample=1 if campus==15915005& rated_year ==2005; qui replace sample=1 if campus==15915005& rated_year ==2004; qui replace sample=1 if campus==71909002& rated_year ==1998; qui replace sample=1 if campus==153903001& rated_year ==2004; qui replace sample=1 if campus==109911001& rated_year ==2001; qui replace sample=1 if campus==152909001& rated_year ==2004; qui replace sample=1 if campus==220907001& rated_year ==1999; qui replace sample=1 if campus==15915004& rated_year ==2007; qui replace sample=1 if campus==57905022& rated_year ==2001; qui replace sample=1 if campus==152907001& rated_year ==2005; qui replace sample=1 if campus==21901001& rated_year ==1996; qui replace sample=1 if campus==101907005& rated_year ==1995; qui replace sample=1 if campus==68901003& rated_year ==2005; qui replace sample=1 if campus==220905010& rated_year ==2002; qui replace sample=1 if campus==15907004& rated_year ==2005; qui replace sample=1 if campus==170904002& rated_year ==2004; qui replace sample=1 if campus==204904001& rated_year ==2006; qui replace sample=1 if campus==161918001& rated_year ==1994; qui replace sample=1 if campus==14909002& rated_year ==2002; qui replace sample=1 if campus==15915002& rated_year ==2008; qui replace sample=1 if campus==234903001& rated_year ==1998; qui replace sample=1 if campus==220901004& rated_year ==2000; qui replace sample=1 if campus==250907001& rated_year ==2004; qui replace sample=1 if campus==79906001& rated_year ==1994; qui replace sample=1 if campus==31909001& rated_year ==1996; qui replace sample=1 if campus==174906001& rated_year ==1996; qui replace sample=1 if campus==15915001& rated_year ==2006; qui replace sample=1 if campus==61908001& rated_year ==2007; qui replace sample=1 if campus==201913001& rated_year ==1994; qui replace sample=1 if campus==146904001& rated_year ==2008; qui replace sample=1 if campus==56901001& rated_year ==1999; qui replace sample=1 if campus==15915001& rated_year ==1998; qui replace sample=1 if campus==15915001& rated_year ==1995; qui replace sample=1 if campus==15915001& rated_year ==1994; qui replace sample=1 if campus==141902001& rated_year ==1999; qui replace sample=1 if campus==178904003& rated_year ==2007; qui replace sample=1 if campus==108908001& rated_year ==1997; qui replace sample=1 if campus==161919001& rated_year ==1996; qui replace sample=1 if campus==152907001& rated_year ==2008; qui replace sample=1 if campus==153903001& rated_year ==2001; qui replace sample=1 if campus==15913001& rated_year ==2008; qui replace sample=1 if campus==30906001& rated_year ==2000; qui replace sample=1 if campus==15913001& rated_year ==2003; qui replace sample=1 if campus==57904001& rated_year ==1998; qui replace sample=1 if campus==15904002& rated_year ==1998; qui replace sample=1 if campus==15913001& rated_year ==1997; qui replace sample=1 if campus==108903001& rated_year ==2008; qui replace sample=1 if campus==101912026& rated_year ==2001; qui replace sample=1 if campus==152908001& rated_year ==1998; qui replace sample=1 if campus==68901045& rated_year ==2002; qui replace sample=1 if campus==174906001& rated_year ==2004; qui replace sample=1 if campus==15910004& rated_year ==2001; qui replace sample=1 if campus==116915001& rated_year ==1995; qui replace sample=1 if campus==247903001& rated_year ==2008; qui replace sample=1 if campus==109907001& rated_year ==2000; qui replace sample=1 if campus==15912001& rated_year ==2006; qui replace sample=1 if campus==14905001& rated_year ==2007; qui replace sample=1 if campus==15912001& rated_year ==2004; qui replace sample=1 if campus==146902002& rated_year ==2004; qui replace sample=1 if campus==93904002& rated_year ==2002; qui replace sample=1 if campus==15912001& rated_year ==1998; qui replace sample=1 if campus==15912001& rated_year ==1997; qui replace sample=1 if campus==15912001& rated_year ==1996; qui replace sample=1 if campus==20905001& rated_year ==2007; qui replace sample=1 if campus==172902001& rated_year ==1995; qui replace sample=1 if campus==100908001& rated_year ==1998; qui replace sample=1 if campus==114901001& rated_year ==2007; qui replace sample=1 if campus==57905021& rated_year ==1995; qui replace sample=1 if campus==15911001& rated_year ==2005; qui replace sample=1 if campus==57905038& rated_year ==2000; qui replace sample=1 if campus==82902001& rated_year ==1998; qui replace sample=1 if campus==15911001& rated_year ==1997; qui replace sample=1 if campus==210902001& rated_year ==1997; qui replace sample=1 if campus==57905015& rated_year ==1998; qui replace sample=1 if campus==57905021& rated_year ==2006; qui replace sample=1 if campus==15901001& rated_year ==2004; qui replace sample=1 if campus==101917003& rated_year ==2000; qui replace sample=1 if campus==30901001& rated_year ==2001; qui replace sample=1 if campus==15907008& rated_year ==1998; qui replace sample=1 if campus==96904001& rated_year ==2004; qui replace sample=1 if campus==15911001& rated_year ==2001; qui replace sample=1 if campus==4901001& rated_year ==1999; qui replace sample=1 if campus==194903001& rated_year ==1999; qui replace sample=1 if campus==196902001& rated_year ==1999; qui replace sample=1 if campus==1908002& rated_year ==1994; qui replace sample=1 if campus==108908001& rated_year ==2004; qui replace sample=1 if campus==171901001& rated_year ==2005; qui replace sample=1 if campus==101917001& rated_year ==1995; qui replace sample=1 if campus==84903001& rated_year ==2006; qui replace sample=1 if campus==145902001& rated_year ==1997; qui replace sample=1 if campus==240901002& rated_year ==1996; qui replace sample=1 if campus==57905037& rated_year ==2000; qui replace sample=1 if campus==15904002& rated_year ==1994; qui replace sample=1 if campus==34905002& rated_year ==2001; qui replace sample=1 if campus==178915001& rated_year ==1997; qui replace sample=1 if campus==108909003& rated_year ==2007; qui replace sample=1 if campus==101912009& rated_year ==1995; qui replace sample=1 if campus==184902001& rated_year ==2008; qui replace sample=1 if campus==121906001& rated_year ==1995; qui replace sample=1 if campus==92908001& rated_year ==2008; qui replace sample=1 if campus==170902001& rated_year ==2008; qui replace sample=1 if campus==121905001& rated_year ==2003; qui replace sample=1 if campus==156902001& rated_year ==2000; qui replace sample=1 if campus==122901002& rated_year ==2002; qui replace sample=1 if campus==71902004& rated_year ==1997; qui replace sample=1 if campus==45902001& rated_year ==1995; qui replace sample=1 if campus==245902001& rated_year ==2007; qui replace sample=1 if campus==184908001& rated_year ==1994; qui replace sample=1 if campus==65901001& rated_year ==2004; qui replace sample=1 if campus==165901042& rated_year ==1995; qui replace sample=1 if campus==253901001& rated_year ==2005; qui replace sample=1 if campus==15907004& rated_year ==2006; qui replace sample=1 if campus==158902001& rated_year ==1998; qui replace sample=1 if campus==19908001& rated_year ==1995; qui replace sample=1 if campus==19906001& rated_year ==1998; qui replace sample=1 if campus==240903001& rated_year ==1999; qui replace sample=1 if campus==68901002& rated_year ==2004; qui replace sample=1 if campus==145911002& rated_year ==2005; qui replace sample=1 if campus==14907001& rated_year ==2007; qui replace sample=1 if campus==205906001& rated_year ==1995; qui replace sample=1 if campus==16902001& rated_year ==1996; qui replace sample=1 if campus==127903001& rated_year ==1995; qui replace sample=1 if campus==15910005& rated_year ==2007; qui replace sample=1 if campus==201913001& rated_year ==1996; qui replace sample=1 if campus==15910005& rated_year ==2004; qui replace sample=1 if campus==66902001& rated_year ==1995; qui replace sample=1 if campus==15915004& rated_year ==2008; qui replace sample=1 if campus==84909001& rated_year ==2002; qui replace sample=1 if campus==15910004& rated_year ==2004; qui replace sample=1 if campus==227901003& rated_year ==2004; qui replace sample=1 if campus==15910004& rated_year ==2000; qui replace sample=1 if campus==15910004& rated_year ==1998; qui replace sample=1 if campus==101915003& rated_year ==2002; qui replace sample=1 if campus==194904002& rated_year ==1999; qui replace sample=1 if campus==15910003& rated_year ==2008; qui replace sample=1 if campus==57903001& rated_year ==1996; qui replace sample=1 if campus==15910003& rated_year ==2004; qui replace sample=1 if campus==61905001& rated_year ==2004; qui replace sample=1 if campus==15910003& rated_year ==2000; qui replace sample=1 if campus==107906001& rated_year ==2006; qui replace sample=1 if campus==166901002& rated_year ==2006; qui replace sample=1 if campus==50910001& rated_year ==2002; qui replace sample=1 if campus==15910002& rated_year ==2004; qui replace sample=1 if campus==15910002& rated_year ==2002; qui replace sample=1 if campus==101920003& rated_year ==2006; qui replace sample=1 if campus==129902001& rated_year ==1996; qui replace sample=1 if campus==15910002& rated_year ==1998; qui replace sample=1 if campus==15910002& rated_year ==1995; qui replace sample=1 if campus==83903001& rated_year ==1999; qui replace sample=1 if campus==243905004& rated_year ==2004; qui replace sample=1 if campus==101912011& rated_year ==2004; qui replace sample=1 if campus==146902002& rated_year ==1998; qui replace sample=1 if campus==15910001& rated_year ==1995; qui replace sample=1 if campus==220905011& rated_year ==2000; qui replace sample=1 if campus==49905001& rated_year ==2006; qui replace sample=1 if campus==234906001& rated_year ==2005; qui replace sample=1 if campus==92903001& rated_year ==2008; qui replace sample=1 if campus==253901001& rated_year ==1998; qui replace sample=1 if campus==92901001& rated_year ==1997; qui replace sample=1 if campus==101915002& rated_year ==2006; qui replace sample=1 if campus==201902001& rated_year ==1997; qui replace sample=1 if campus==200902001& rated_year ==2001; qui replace sample=1 if campus==79901002& rated_year ==1995; qui replace sample=1 if campus==15909001& rated_year ==2002; qui replace sample=1 if campus==113905001& rated_year ==2004; qui replace sample=1 if campus==15915004& rated_year ==1996; qui replace sample=1 if campus==31903002& rated_year ==1994; qui replace sample=1 if campus==141901001& rated_year ==2001; qui replace sample=1 if campus==109905001& rated_year ==2005; qui replace sample=1 if campus==91913001& rated_year ==1997; qui replace sample=1 if campus==33902001& rated_year ==1999; qui replace sample=1 if campus==36903001& rated_year ==2005; qui replace sample=1 if campus==59901001& rated_year ==2006; qui replace sample=1 if campus==71905005& rated_year ==2007; qui replace sample=1 if campus==34903001& rated_year ==2005; qui replace sample=1 if campus==113905001& rated_year ==1997; qui replace sample=1 if campus==152909001& rated_year ==1997; qui replace sample=1 if campus==43914001& rated_year ==2004; qui replace sample=1 if campus==200901001& rated_year ==1995; qui replace sample=1 if campus==129910001& rated_year ==2008; qui replace sample=1 if campus==236902002& rated_year ==1995; qui replace sample=1 if campus==61911001& rated_year ==2001; qui replace sample=1 if campus==57909003& rated_year ==2000; qui replace sample=1 if campus==57905015& rated_year ==1999; qui replace sample=1 if campus==18901001& rated_year ==1998; qui replace sample=1 if campus==15908002& rated_year ==2003; qui replace sample=1 if campus==63903001& rated_year ==2006; qui replace sample=1 if campus==15907004& rated_year ==1999; qui replace sample=1 if campus==198905002& rated_year ==1998; qui replace sample=1 if campus==174908001& rated_year ==2005; qui replace sample=1 if campus==15908001& rated_year ==2001; qui replace sample=1 if campus==85902001& rated_year ==2002; qui replace sample=1 if campus==220905001& rated_year ==1997; qui replace sample=1 if campus==108909001& rated_year ==2003; qui replace sample=1 if campus==64901001& rated_year ==1996; qui replace sample=1 if campus==240901002& rated_year ==2000; qui replace sample=1 if campus==20904001& rated_year ==1994; qui replace sample=1 if campus==122901002& rated_year ==2005; qui replace sample=1 if campus==42901001& rated_year ==2000; qui replace sample=1 if campus==15910004& rated_year ==1996; qui replace sample=1 if campus==101920001& rated_year ==1996; qui replace sample=1 if campus==108906001& rated_year ==2006; qui replace sample=1 if campus==57905007& rated_year ==1998; qui replace sample=1 if campus==45905002& rated_year ==2004; qui replace sample=1 if campus==15912001& rated_year ==2007; qui replace sample=1 if campus==101907005& rated_year ==2006; qui replace sample=1 if campus==231901001& rated_year ==1997; qui replace sample=1 if campus==15910001& rated_year ==2001; qui replace sample=1 if campus==31901002& rated_year ==2000; qui replace sample=1 if campus==101913001& rated_year ==1994; qui replace sample=1 if campus==236902002& rated_year ==2008; qui replace sample=1 if campus==244903001& rated_year ==2003; qui replace sample=1 if campus==101912019& rated_year ==2002; qui replace sample=1 if campus==70908001& rated_year ==1997; qui replace sample=1 if campus==244903001& rated_year ==1995; qui replace sample=1 if campus==71905002& rated_year ==2004; qui replace sample=1 if campus==199902002& rated_year ==1997; qui replace sample=1 if campus==66903002& rated_year ==1998; qui replace sample=1 if campus==238902001& rated_year ==2005; qui replace sample=1 if campus==75902001& rated_year ==1995; qui replace sample=1 if campus==31901007& rated_year ==2003; qui replace sample=1 if campus==57905009& rated_year ==2007; qui replace sample=1 if campus==175907001& rated_year ==2004; qui replace sample=1 if campus==100908001& rated_year ==2006; qui replace sample=1 if campus==178904005& rated_year ==2008; qui replace sample=1 if campus==114904001& rated_year ==1995; qui replace sample=1 if campus==202905002& rated_year ==1998; qui replace sample=1 if campus==66901001& rated_year ==2006; qui replace sample=1 if campus==15907182& rated_year ==2001; qui replace sample=1 if campus==101912001& rated_year ==1998; qui replace sample=1 if campus==15907182& rated_year ==1999; qui replace sample=1 if campus==79907001& rated_year ==1999; qui replace sample=1 if campus==212906001& rated_year ==2005; qui replace sample=1 if campus==60902001& rated_year ==2008; qui replace sample=1 if campus==107901001& rated_year ==2002; qui replace sample=1 if campus==212910001& rated_year ==2007; qui replace sample=1 if campus==152909001& rated_year ==1996; qui replace sample=1 if campus==101917003& rated_year ==2003; qui replace sample=1 if campus==210905001& rated_year ==2008; qui replace sample=1 if campus==105904001& rated_year ==2007; qui replace sample=1 if campus==101912010& rated_year ==2004; qui replace sample=1 if campus==178904001& rated_year ==2005; qui replace sample=1 if campus==201902001& rated_year ==1996; qui replace sample=1 if campus==57910003& rated_year ==1997; qui replace sample=1 if campus==120901001& rated_year ==2003; qui replace sample=1 if campus==14903001& rated_year ==1997; qui replace sample=1 if campus==204901001& rated_year ==1996; qui replace sample=1 if campus==96904001& rated_year ==2008; qui replace sample=1 if campus==43910003& rated_year ==2003; qui replace sample=1 if campus==34905002& rated_year ==2006; qui replace sample=1 if campus==101914002& rated_year ==1994; qui replace sample=1 if campus==220901004& rated_year ==1997; qui replace sample=1 if campus==181905001& rated_year ==2003; qui replace sample=1 if campus==33902001& rated_year ==1997; qui replace sample=1 if campus==112908001& rated_year ==2001; qui replace sample=1 if campus==68901002& rated_year ==1999; qui replace sample=1 if campus==202903001& rated_year ==2008; qui replace sample=1 if campus==201914001& rated_year ==2003; qui replace sample=1 if campus==57905017& rated_year ==2001; qui replace sample=1 if campus==107904001& rated_year ==2005; qui replace sample=1 if campus==54902001& rated_year ==1998; qui replace sample=1 if campus==213901001& rated_year ==1996; qui replace sample=1 if campus==15907007& rated_year ==2001; qui replace sample=1 if campus==15907007& rated_year ==1996; qui replace sample=1 if campus==57909003& rated_year ==1994; qui replace sample=1 if campus==22901001& rated_year ==2005; qui replace sample=1 if campus==13903001& rated_year ==2001; qui replace sample=1 if campus==9901001& rated_year ==2005; qui replace sample=1 if campus==240901001& rated_year ==1998; qui replace sample=1 if campus==101912011& rated_year ==2008; qui replace sample=1 if campus==170903002& rated_year ==2004; qui replace sample=1 if campus==146904001& rated_year ==2001; qui replace sample=1 if campus==15907005& rated_year ==2005; qui replace sample=1 if campus==9901001& rated_year ==1999; qui replace sample=1 if campus==15907005& rated_year ==2003; qui replace sample=1 if campus==15907005& rated_year ==2002; qui replace sample=1 if campus==69902001& rated_year ==1997; qui replace sample=1 if campus==101912020& rated_year ==1998; qui replace sample=1 if campus==175904001& rated_year ==2001; qui replace sample=1 if campus==31906001& rated_year ==2000; qui replace sample=1 if campus==125903001& rated_year ==1997; qui replace sample=1 if campus==74917001& rated_year ==2003; qui replace sample=1 if campus==57906001& rated_year ==2008; qui replace sample=1 if campus==15907008& rated_year ==1996; qui replace sample=1 if campus==57912002& rated_year ==2006; qui replace sample=1 if campus==68901003& rated_year ==1994; qui replace sample=1 if campus==101907003& rated_year ==2003; qui replace sample=1 if campus==15907003& rated_year ==2003; qui replace sample=1 if campus==188901004& rated_year ==1998; qui replace sample=1 if campus==15907003& rated_year ==2000; qui replace sample=1 if campus==220905004& rated_year ==1998; qui replace sample=1 if campus==15907003& rated_year ==1997; qui replace sample=1 if campus==7902001& rated_year ==2002; qui replace sample=1 if campus==15907002& rated_year ==2008; qui replace sample=1 if campus==15907002& rated_year ==2007; qui replace sample=1 if campus==101910003& rated_year ==2008; qui replace sample=1 if campus==15907002& rated_year ==2002; qui replace sample=1 if campus==71902008& rated_year ==2003; qui replace sample=1 if campus==101912034& rated_year ==2006; qui replace sample=1 if campus==15907002& rated_year ==1996; qui replace sample=1 if campus==43910005& rated_year ==2005; qui replace sample=1 if campus==15915006& rated_year ==2003; qui replace sample=1 if campus==240901003& rated_year ==2001; qui replace sample=1 if campus==178904001& rated_year ==2007; qui replace sample=1 if campus==101907004& rated_year ==1994; qui replace sample=1 if campus==246909001& rated_year ==2004; qui replace sample=1 if campus==101912015& rated_year ==1999; qui replace sample=1 if campus==71905003& rated_year ==2000; qui replace sample=1 if campus==116908001& rated_year ==2001; qui replace sample=1 if campus==230908001& rated_year ==1999; qui replace sample=1 if campus==165901042& rated_year ==2004; qui replace sample=1 if campus==246907001& rated_year ==1994; qui replace sample=1 if campus==175902001& rated_year ==1999; qui replace sample=1 if campus==84901001& rated_year ==1998; qui replace sample=1 if campus==15906001& rated_year ==2006; qui replace sample=1 if campus==220905008& rated_year ==1997; qui replace sample=1 if campus==15906001& rated_year ==2001; qui replace sample=1 if campus==161914003& rated_year ==2004; qui replace sample=1 if campus==247904001& rated_year ==2003; qui replace sample=1 if campus==15906001& rated_year ==1996; qui replace sample=1 if campus==84903001& rated_year ==2007; qui replace sample=1 if campus==236902002& rated_year ==1996; qui replace sample=1 if campus==15904001& rated_year ==2007; qui replace sample=1 if campus==98901001& rated_year ==1994; qui replace sample=1 if campus==15915004& rated_year ==2002; qui replace sample=1 if campus==101916001& rated_year ==2000; qui replace sample=1 if campus==107910001& rated_year ==2001; qui replace sample=1 if campus==57903001& rated_year ==2008; qui replace sample=1 if campus==170903002& rated_year ==1994; qui replace sample=1 if campus==18901001& rated_year ==2001; qui replace sample=1 if campus==169901001& rated_year ==2005; qui replace sample=1 if campus==194903001& rated_year ==1996; qui replace sample=1 if campus==57914002& rated_year ==2004; qui replace sample=1 if campus==112901002& rated_year ==1996; qui replace sample=1 if campus==42901001& rated_year ==1998; qui replace sample=1 if campus==227901007& rated_year ==1998; qui replace sample=1 if campus==247903001& rated_year ==1997; qui replace sample=1 if campus==12901001& rated_year ==2000; qui replace sample=1 if campus==10901001& rated_year ==1998; qui replace sample=1 if campus==84910001& rated_year ==1995; qui replace sample=1 if campus==161916001& rated_year ==2000; qui replace sample=1 if campus==15905003& rated_year ==2007; qui replace sample=1 if campus==43910003& rated_year ==2008; qui replace sample=1 if campus==227901009& rated_year ==1996; qui replace sample=1 if campus==57905013& rated_year ==1998; qui replace sample=1 if campus==170903002& rated_year ==2005; qui replace sample=1 if campus==15905003& rated_year ==1995; qui replace sample=1 if campus==15905002& rated_year ==2003; qui replace sample=1 if campus==246909003& rated_year ==1994; qui replace sample=1 if campus==101912002& rated_year ==2002; qui replace sample=1 if campus==189902001& rated_year ==2001; qui replace sample=1 if campus==178904001& rated_year ==1995; qui replace sample=1 if campus==101902005& rated_year ==1998; qui replace sample=1 if campus==108911001& rated_year ==2006; qui replace sample=1 if campus==15905001& rated_year ==1995; qui replace sample=1 if campus==32902002& rated_year ==2000; qui replace sample=1 if campus==161921001& rated_year ==1994; qui replace sample=1 if campus==45905002& rated_year ==2001; qui replace sample=1 if campus==57905006& rated_year ==2006; qui replace sample=1 if campus==43918001& rated_year ==1994; qui replace sample=1 if campus==57905015& rated_year ==2000; qui replace sample=1 if campus==57912003& rated_year ==1999; qui replace sample=1 if campus==220901004& rated_year ==2004; qui replace sample=1 if campus==146902002& rated_year ==2005; qui replace sample=1 if campus==230906001& rated_year ==2004; qui replace sample=1 if campus==108916001& rated_year ==2003; qui replace sample=1 if campus==100903002& rated_year ==2000; qui replace sample=1 if campus==101902004& rated_year ==2003; qui replace sample=1 if campus==84906001& rated_year ==1998; qui replace sample=1 if campus==19905001& rated_year ==2008; qui replace sample=1 if campus==105905001& rated_year ==2004; qui replace sample=1 if campus==91908001& rated_year ==1994; qui replace sample=1 if campus==15907001& rated_year ==2001; qui replace sample=1 if campus==171901001& rated_year ==2006; qui replace sample=1 if campus==245903001& rated_year ==2008; qui replace sample=1 if campus==62903001& rated_year ==2007; qui replace sample=1 if campus==57914002& rated_year ==1995; qui replace sample=1 if campus==152902001& rated_year ==1995; qui replace sample=1 if campus==32902002& rated_year ==2002; qui replace sample=1 if campus==108902001& rated_year ==2002; qui replace sample=1 if campus==113906001& rated_year ==2002; qui replace sample=1 if campus==31903001& rated_year ==2006; qui replace sample=1 if campus==15904002& rated_year ==2008; qui replace sample=1 if campus==220905001& rated_year ==1994; qui replace sample=1 if campus==126911001& rated_year ==2000; qui replace sample=1 if campus==178908001& rated_year ==1996; qui replace sample=1 if campus==210903002& rated_year ==1995; qui replace sample=1 if campus==233901001& rated_year ==1999; qui replace sample=1 if campus==161918001& rated_year ==1998; qui replace sample=1 if campus==178914001& rated_year ==1996; qui replace sample=1 if campus==3906001& rated_year ==2002; qui replace sample=1 if campus==15907005& rated_year ==1999; qui replace sample=1 if campus==15904001& rated_year ==1999; qui replace sample=1 if campus==91918001& rated_year ==2002; qui replace sample=1 if campus==123908001& rated_year ==2004; qui replace sample=1 if campus==38901001& rated_year ==2007; qui replace sample=1 if campus==71902001& rated_year ==1996; qui replace sample=1 if campus==92906002& rated_year ==1999; qui replace sample=1 if campus==15901001& rated_year ==2008; qui replace sample=1 if campus==152907001& rated_year ==1994; qui replace sample=1 if campus==10902001& rated_year ==2001; qui replace sample=1 if campus==94904001& rated_year ==2004; qui replace sample=1 if campus==210902001& rated_year ==2007; qui replace sample=1 if campus==174904002& rated_year ==1998; qui replace sample=1 if campus==15901001& rated_year ==1998; qui replace sample=1 if campus==57905018& rated_year ==2008; qui replace sample=1 if campus==101917001& rated_year ==2004; qui replace sample=1 if campus==15901001& rated_year ==1994; qui replace sample=1 if campus==43911001& rated_year ==2004; qui replace sample=1 if campus==250905001& rated_year ==2002; qui replace sample=1 if campus==97903001& rated_year ==1997; qui replace sample=1 if campus==70912002& rated_year ==2000; qui replace sample=1 if campus==243905001& rated_year ==2004; qui replace sample=1 if campus==84910002& rated_year ==1997; qui replace sample=1 if campus==57905001& rated_year ==1995; qui replace sample=1 if campus==227910001& rated_year ==2006; qui replace sample=1 if campus==152902001& rated_year ==2008; qui replace sample=1 if campus==165901044& rated_year ==1994; qui replace sample=1 if campus==221901002& rated_year ==2008; qui replace sample=1 if campus==73903001& rated_year ==2004; qui replace sample=1 if campus==127903001& rated_year ==2007; qui replace sample=1 if campus==190903001& rated_year ==2007; qui replace sample=1 if campus==203901002& rated_year ==2000; qui replace sample=1 if campus==15915004& rated_year ==2006; qui replace sample=1 if campus==32902002& rated_year ==2005; qui replace sample=1 if campus==117903001& rated_year ==1997; qui replace sample=1 if campus==161901001& rated_year ==1994; qui replace sample=1 if campus==57905013& rated_year ==2008; qui replace sample=1 if campus==141902001& rated_year ==2002; qui replace sample=1 if campus==116915001& rated_year ==2002; qui replace sample=1 if campus==178904004& rated_year ==1994; qui replace sample=1 if campus==20904001& rated_year ==2006; qui replace sample=1 if campus==15904001& rated_year ==2001; qui replace sample=1 if campus==101920005& rated_year ==2004; qui replace sample=1 if campus==123910001& rated_year ==1995; qui replace sample=1 if campus==121905001& rated_year ==2006; qui replace sample=1 if campus==25909001& rated_year ==2006; qui replace sample=1 if campus==235901001& rated_year ==2006; qui replace sample=1 if campus==178915001& rated_year ==2003; qui replace sample=1 if campus==65901001& rated_year ==1998; qui replace sample=1 if campus==246902001& rated_year ==1996; qui replace sample=1 if campus==71902002& rated_year ==1996; qui replace sample=1 if campus==96904001& rated_year ==1998; qui replace sample=1 if campus==82902001& rated_year ==1999; qui replace sample=1 if campus==30901001& rated_year ==2003; qui replace sample=1 if campus==95905001& rated_year ==2006; qui replace sample=1 if campus==79901001& rated_year ==2006; qui replace sample=1 if campus==57905037& rated_year ==2007; qui replace sample=1 if campus==31916001& rated_year ==2002; qui replace sample=1 if campus==14906001& rated_year ==1994; qui replace sample=1 if campus==120905001& rated_year ==1994; qui replace sample=1 if campus==57905001& rated_year ==2000; qui replace sample=1 if campus==200901001& rated_year ==1999; qui replace sample=1 if campus==11902001& rated_year ==1994; qui replace sample=1 if campus==57905037& rated_year ==1996; qui replace sample=1 if campus==211902001& rated_year ==2003; qui replace sample=1 if campus==108913001& rated_year ==2002; qui replace sample=1 if campus==4901001& rated_year ==2001; qui replace sample=1 if campus==242902001& rated_year ==2002; qui replace sample=1 if campus==10901001& rated_year ==2006; qui replace sample=1 if campus==11901001& rated_year ==2006; qui replace sample=1 if campus==15910002& rated_year ==2003; qui replace sample=1 if campus==129906002& rated_year ==2004; qui replace sample=1 if campus==71902005& rated_year ==1999; qui replace sample=1 if campus==15908002& rated_year ==2000; qui replace sample=1 if campus==92903001& rated_year ==1994; qui replace sample=1 if campus==188901001& rated_year ==1995; qui replace sample=1 if campus==101912007& rated_year ==1997; qui replace sample=1 if campus==181907001& rated_year ==2001; qui replace sample=1 if campus==170902003& rated_year ==2002; qui replace sample=1 if campus==254901001& rated_year ==2000; qui replace sample=1 if campus==14902001& rated_year ==1998; qui replace sample=1 if campus==180901001& rated_year ==2000; qui replace sample=1 if campus==14901001& rated_year ==2000; qui replace sample=1 if campus==108902001& rated_year ==1998; qui replace sample=1 if campus==36901001& rated_year ==1995; qui replace sample=1 if campus==15910004& rated_year ==1995; qui replace sample=1 if campus==9901001& rated_year ==2001; qui replace sample=1 if campus==36901001& rated_year ==1998; qui replace sample=1 if campus==140908001& rated_year ==2001; qui replace sample=1 if campus==219903001& rated_year ==2007; qui replace sample=1 if campus==15915002& rated_year ==2002; qui replace sample=1 if campus==39902001& rated_year ==1994; qui replace sample=1 if campus==175904001& rated_year ==2004; qui replace sample=1 if campus==79907001& rated_year ==2000; qui replace sample=1 if campus==107906001& rated_year ==1996; qui replace sample=1 if campus==163901001& rated_year ==2004; qui replace sample=1 if campus==20906002& rated_year ==1998; qui replace sample=1 if campus==11902001& rated_year ==2002; qui replace sample=1 if campus==108907001& rated_year ==2003; qui replace sample=1 if campus==57905018& rated_year ==1998; qui replace sample=1 if campus==19908001& rated_year ==2001; qui replace sample=1 if campus==28903001& rated_year ==1997; qui replace sample=1 if campus==170902001& rated_year ==1995; qui replace sample=1 if campus==101907003& rated_year ==1996; qui replace sample=1 if campus==101920005& rated_year ==2008; qui replace sample=1 if campus==20907001& rated_year ==1996; qui replace sample=1 if campus==101912017& rated_year ==1998; qui replace sample=1 if campus==227901004& rated_year ==2006; qui replace sample=1 if campus==1904001& rated_year ==2005; qui replace sample=1 if campus==236901002& rated_year ==1998; qui replace sample=1 if campus==60902001& rated_year ==1999; qui replace sample=1 if campus==101912020& rated_year ==1996; qui replace sample=1 if campus==143901001& rated_year ==1999; qui replace sample=1 if campus==11902001& rated_year ==1997; qui replace sample=1 if campus==14910001& rated_year ==2007; qui replace sample=1 if campus==81902002& rated_year ==1997; qui replace sample=1 if campus==3907001& rated_year ==1996; qui replace sample=1 if campus==14910001& rated_year ==2001; qui replace sample=1 if campus==14910001& rated_year ==1997; qui replace sample=1 if campus==43902001& rated_year ==1997; qui replace sample=1 if campus==14910001& rated_year ==1994; qui replace sample=1 if campus==214901001& rated_year ==2006; qui replace sample=1 if campus==129902001& rated_year ==2001; qui replace sample=1 if campus==22901001& rated_year ==2006; qui replace sample=1 if campus==1909001& rated_year ==1995; qui replace sample=1 if campus==178904005& rated_year ==2001; qui replace sample=1 if campus==230902002& rated_year ==2001; qui replace sample=1 if campus==183902001& rated_year ==1995; qui replace sample=1 if campus==96904001& rated_year ==1997; qui replace sample=1 if campus==13905001& rated_year ==1999; qui replace sample=1 if campus==22901001& rated_year ==2000; qui replace sample=1 if campus==8901001& rated_year ==2003; qui replace sample=1 if campus==14909002& rated_year ==2003; qui replace sample=1 if campus==204901001& rated_year ==1997; qui replace sample=1 if campus==75901001& rated_year ==2006; qui replace sample=1 if campus==178915001& rated_year ==2005; qui replace sample=1 if campus==189901001& rated_year ==2005; qui replace sample=1 if campus==250906001& rated_year ==2004; qui replace sample=1 if campus==101914002& rated_year ==1999; qui replace sample=1 if campus==120901001& rated_year ==2000; qui replace sample=1 if campus==43907002& rated_year ==1997; qui replace sample=1 if campus==147903002& rated_year ==1996; qui replace sample=1 if campus==101911002& rated_year ==1997; qui replace sample=1 if campus==7904001& rated_year ==2002; qui replace sample=1 if campus==161901001& rated_year ==2005; qui replace sample=1 if campus==14907001& rated_year ==2002; qui replace sample=1 if campus==14907001& rated_year ==2001; qui replace sample=1 if campus==14907001& rated_year ==1999; qui replace sample=1 if campus==20905002& rated_year ==2003; qui replace sample=1 if campus==101907007& rated_year ==1994; qui replace sample=1 if campus==1904001& rated_year ==1999; qui replace sample=1 if campus==198905002& rated_year ==2000; qui replace sample=1 if campus==171901001& rated_year ==1996; qui replace sample=1 if campus==53001001& rated_year ==1997; qui replace sample=1 if campus==178913001& rated_year ==1998; qui replace sample=1 if campus==71905004& rated_year ==2004; qui replace sample=1 if campus==123907001& rated_year ==1997; qui replace sample=1 if campus==57912004& rated_year ==1998; qui replace sample=1 if campus==27903001& rated_year ==2002; qui replace sample=1 if campus==195901001& rated_year ==1995; qui replace sample=1 if campus==27903001& rated_year ==2004; qui replace sample=1 if campus==109911001& rated_year ==2000; qui replace sample=1 if campus==15904002& rated_year ==2001; qui replace sample=1 if campus==210905001& rated_year ==2005; qui replace sample=1 if campus==7906001& rated_year ==2002; qui replace sample=1 if campus==129906002& rated_year ==2008; qui replace sample=1 if campus==71902002& rated_year ==2004; qui replace sample=1 if campus==220912001& rated_year ==2002; qui replace sample=1 if campus==113906001& rated_year ==2007; qui replace sample=1 if campus==57907003& rated_year ==2001; qui replace sample=1 if campus==13905001& rated_year ==1997; qui replace sample=1 if campus==129903001& rated_year ==2004; qui replace sample=1 if campus==250907001& rated_year ==1997; qui replace sample=1 if campus==84902001& rated_year ==1998; qui replace sample=1 if campus==31909001& rated_year ==2008; qui replace sample=1 if campus==116902001& rated_year ==1994; qui replace sample=1 if campus==125905001& rated_year ==2004; qui replace sample=1 if campus==229905001& rated_year ==2007; qui replace sample=1 if campus==63903001& rated_year ==2005; qui replace sample=1 if campus==112908001& rated_year ==2007; qui replace sample=1 if campus==235901001& rated_year ==2001; qui replace sample=1 if campus==98901001& rated_year ==2002; qui replace sample=1 if campus==220905009& rated_year ==2007; qui replace sample=1 if campus==71901002& rated_year ==2003; qui replace sample=1 if campus==15910003& rated_year ==1994; qui replace sample=1 if campus==241906001& rated_year ==2006; qui replace sample=1 if campus==101906001& rated_year ==2001; qui replace sample=1 if campus==71905004& rated_year ==2003; qui replace sample=1 if campus==109904001& rated_year ==1996; qui replace sample=1 if campus==57905026& rated_year ==2003; qui replace sample=1 if campus==15910001& rated_year ==2005; qui replace sample=1 if campus==8902001& rated_year ==1998; qui replace sample=1 if campus==248901001& rated_year ==2004; qui replace sample=1 if campus==91903001& rated_year ==2005; qui replace sample=1 if campus==234903001& rated_year ==2000; qui replace sample=1 if campus==9901001& rated_year ==1994; qui replace sample=1 if campus==62903001& rated_year ==2003; qui replace sample=1 if campus==55901001& rated_year ==1995; qui replace sample=1 if campus==14906002& rated_year ==2004; qui replace sample=1 if campus==70907001& rated_year ==2005; qui replace sample=1 if campus==227901002& rated_year ==1996; qui replace sample=1 if campus==99903001& rated_year ==2005; qui replace sample=1 if campus==14906002& rated_year ==1997; qui replace sample=1 if campus==113905001& rated_year ==1994; qui replace sample=1 if campus==14906001& rated_year ==2007; qui replace sample=1 if campus==14906001& rated_year ==2006; qui replace sample=1 if campus==101914002& rated_year ==1996; qui replace sample=1 if campus==14906001& rated_year ==2003; qui replace sample=1 if campus==19906001& rated_year ==1997; qui replace sample=1 if campus==71902005& rated_year ==2003; qui replace sample=1 if campus==14906001& rated_year ==2000; qui replace sample=1 if campus==250902001& rated_year ==1997; qui replace sample=1 if campus==18907001& rated_year ==1998; qui replace sample=1 if campus==57914003& rated_year ==2002; qui replace sample=1 if campus==14905001& rated_year ==2004; qui replace sample=1 if campus==116901001& rated_year ==1999; qui replace sample=1 if campus==101914005& rated_year ==2004; qui replace sample=1 if campus==101912007& rated_year ==1999; qui replace sample=1 if campus==57905018& rated_year ==1994; qui replace sample=1 if campus==71902010& rated_year ==2001; qui replace sample=1 if campus==213901001& rated_year ==1995; qui replace sample=1 if campus==212903001& rated_year ==2007; qui replace sample=1 if campus==126907001& rated_year ==2007; qui replace sample=1 if campus==73903001& rated_year ==2005; qui replace sample=1 if campus==233901002& rated_year ==1994; qui replace sample=1 if campus==101914005& rated_year ==1999; qui replace sample=1 if campus==220917001& rated_year ==1997; qui replace sample=1 if campus==243905002& rated_year ==2007; qui replace sample=1 if campus==254901001& rated_year ==2004; qui replace sample=1 if campus==101916001& rated_year ==1997; qui replace sample=1 if campus==90904001& rated_year ==2002; qui replace sample=1 if campus==70903002& rated_year ==2006; qui replace sample=1 if campus==39902001& rated_year ==2000; qui replace sample=1 if campus==14903001& rated_year ==1998; qui replace sample=1 if campus==89901001& rated_year ==2002; qui replace sample=1 if campus==101912025& rated_year ==1997; qui replace sample=1 if campus==178908001& rated_year ==1998; qui replace sample=1 if campus==129905001& rated_year ==1997; qui replace sample=1 if campus==108914001& rated_year ==2001; qui replace sample=1 if campus==108910001& rated_year ==1995; qui replace sample=1 if campus==168901001& rated_year ==2008; qui replace sample=1 if campus==14902001& rated_year ==2001; qui replace sample=1 if campus==139911002& rated_year ==2006; qui replace sample=1 if campus==203901002& rated_year ==2001; qui replace sample=1 if campus==14902001& rated_year ==1994; qui replace sample=1 if campus==71906001& rated_year ==1994; qui replace sample=1 if campus==178904004& rated_year ==2000; qui replace sample=1 if campus==14901001& rated_year ==2003; qui replace sample=1 if campus==14901001& rated_year ==2002; qui replace sample=1 if campus==14901001& rated_year ==1999; qui replace sample=1 if campus==61902001& rated_year ==2005; qui replace sample=1 if campus==237902001& rated_year ==1996; qui replace sample=1 if campus==14901001& rated_year ==1995; qui replace sample=1 if campus==101912015& rated_year ==2002; qui replace sample=1 if campus==227901006& rated_year ==2005; qui replace sample=1 if campus==184909001& rated_year ==2005; qui replace sample=1 if campus==57905034& rated_year ==1996; qui replace sample=1 if campus==172905002& rated_year ==2003; qui replace sample=1 if campus==39902001& rated_year ==1997; qui replace sample=1 if campus==14905001& rated_year ==1997; qui replace sample=1 if campus==43910005& rated_year ==2008; qui replace sample=1 if campus==24901001& rated_year ==2003; qui replace sample=1 if campus==189902001& rated_year ==1994; qui replace sample=1 if campus==102903002& rated_year ==1995; qui replace sample=1 if campus==170908001& rated_year ==2002; qui replace sample=1 if campus==123908001& rated_year ==1995; qui replace sample=1 if campus==97903001& rated_year ==1998; qui replace sample=1 if campus==62901001& rated_year ==1998; qui replace sample=1 if campus==101903002& rated_year ==1997; qui replace sample=1 if campus==178909001& rated_year ==1995; qui replace sample=1 if campus==13905001& rated_year ==2002; qui replace sample=1 if campus==91913001& rated_year ==2003; qui replace sample=1 if campus==178903001& rated_year ==2008; qui replace sample=1 if campus==220905002& rated_year ==1997; qui replace sample=1 if campus==246907001& rated_year ==2005; qui replace sample=1 if campus==108904003& rated_year ==2008; qui replace sample=1 if campus==134901001& rated_year ==1996; qui replace sample=1 if campus==13903001& rated_year ==2004; qui replace sample=1 if campus==123907001& rated_year ==1995; qui replace sample=1 if campus==108904001& rated_year ==1999; qui replace sample=1 if campus==179901001& rated_year ==1999; qui replace sample=1 if campus==30902001& rated_year ==1996; qui replace sample=1 if campus==101912002& rated_year ==1995; qui replace sample=1 if campus==108911001& rated_year ==1998; qui replace sample=1 if campus==184904001& rated_year ==1996; qui replace sample=1 if campus==71902008& rated_year ==2001; qui replace sample=1 if campus==120901001& rated_year ==1998; qui replace sample=1 if campus==15915004& rated_year ==1998; qui replace sample=1 if campus==227901013& rated_year ==1995; qui replace sample=1 if campus==112908001& rated_year ==1998; qui replace sample=1 if campus==61902004& rated_year ==2008; qui replace sample=1 if campus==13901001& rated_year ==1996; qui replace sample=1 if campus==146904001& rated_year ==2007; qui replace sample=1 if campus==51901001& rated_year ==1997; qui replace sample=1 if campus==12901001& rated_year ==2006; qui replace sample=1 if campus==20906002& rated_year ==1994; qui replace sample=1 if campus==91905001& rated_year ==2003; qui replace sample=1 if campus==57914003& rated_year ==2000; qui replace sample=1 if campus==12901001& rated_year ==1994; qui replace sample=1 if campus==95901001& rated_year ==1995; qui replace sample=1 if campus==247904001& rated_year ==2005; qui replace sample=1 if campus==172902001& rated_year ==1999; qui replace sample=1 if campus==241902001& rated_year ==1998; qui replace sample=1 if campus==84908001& rated_year ==2005; qui replace sample=1 if campus==66901001& rated_year ==1994; qui replace sample=1 if campus==246909004& rated_year ==2006; qui replace sample=1 if campus==15910003& rated_year ==2003; qui replace sample=1 if campus==101902004& rated_year ==1995; qui replace sample=1 if campus==79906001& rated_year ==2004; qui replace sample=1 if campus==25909001& rated_year ==2004; qui replace sample=1 if campus==207901001& rated_year ==2000; qui replace sample=1 if campus==161918001& rated_year ==2001; qui replace sample=1 if campus==123908001& rated_year ==1999; qui replace sample=1 if campus==79907001& rated_year ==2001; qui replace sample=1 if campus==92906002& rated_year ==1995; qui replace sample=1 if campus==249906001& rated_year ==1997; qui replace sample=1 if campus==108902001& rated_year ==2007; qui replace sample=1 if campus==114904001& rated_year ==2002; qui replace sample=1 if campus==15912001& rated_year ==2003; qui replace sample=1 if campus==67902001& rated_year ==2005; qui replace sample=1 if campus==71902003& rated_year ==1998; qui replace sample=1 if campus==35901001& rated_year ==2002; qui replace sample=1 if campus==40901001& rated_year ==2007; qui replace sample=1 if campus==3905001& rated_year ==2005; qui replace sample=1 if campus==11902001& rated_year ==2000; qui replace sample=1 if campus==11902001& rated_year ==1996; qui replace sample=1 if campus==101907003& rated_year ==1998; qui replace sample=1 if campus==220918001& rated_year ==2008; qui replace sample=1 if campus==83903001& rated_year ==1997; qui replace sample=1 if campus==31903001& rated_year ==2008; qui replace sample=1 if campus==233901002& rated_year ==2002; qui replace sample=1 if campus==61908001& rated_year ==1994; qui replace sample=1 if campus==235901001& rated_year ==2000; qui replace sample=1 if campus==108909003& rated_year ==1994; qui replace sample=1 if campus==43910005& rated_year ==1995; qui replace sample=1 if campus==83903001& rated_year ==2008; qui replace sample=1 if campus==247901001& rated_year ==1997; qui replace sample=1 if campus==101920005& rated_year ==2006; qui replace sample=1 if campus==34901001& rated_year ==1995; qui replace sample=1 if campus==90904001& rated_year ==2004; qui replace sample=1 if campus==32902002& rated_year ==1997; qui replace sample=1 if campus==243905002& rated_year ==2002; qui replace sample=1 if campus==11901001& rated_year ==2003; qui replace sample=1 if campus==174904002& rated_year ==2002; qui replace sample=1 if campus==31906001& rated_year ==2005; qui replace sample=1 if campus==220907001& rated_year ==1994; qui replace sample=1 if campus==85902001& rated_year ==2003; qui replace sample=1 if campus==67902001& rated_year ==1997; qui replace sample=1 if campus==71901002& rated_year ==2008; qui replace sample=1 if campus==220920001& rated_year ==1999; qui replace sample=1 if campus==31901004& rated_year ==1999; qui replace sample=1 if campus==93901001& rated_year ==1996; qui replace sample=1 if campus==10902001& rated_year ==1999; qui replace sample=1 if campus==10901001& rated_year ==2007; qui replace sample=1 if campus==60902001& rated_year ==1996; qui replace sample=1 if campus==127901001& rated_year ==2000; qui replace sample=1 if campus==84908001& rated_year ==2003; qui replace sample=1 if campus==26902001& rated_year ==1999; qui replace sample=1 if campus==101911002& rated_year ==2002; qui replace sample=1 if campus==15905002& rated_year ==1995; qui replace sample=1 if campus==105905001& rated_year ==2008; qui replace sample=1 if campus==54903001& rated_year ==2002; qui replace sample=1 if campus==126905001& rated_year ==1997; qui replace sample=1 if campus==150901001& rated_year ==2005; qui replace sample=1 if campus==101920006& rated_year ==1996; qui replace sample=1 if campus==102904002& rated_year ==1999; qui replace sample=1 if campus==102901002& rated_year ==1998; qui replace sample=1 if campus==9901001& rated_year ==1998; qui replace sample=1 if campus==15907008& rated_year ==2005; qui replace sample=1 if campus==54903001& rated_year ==2001; qui replace sample=1 if campus==101911002& rated_year ==1995; qui replace sample=1 if campus==70912002& rated_year ==2003; qui replace sample=1 if campus==163903001& rated_year ==1996; qui replace sample=1 if campus==121903001& rated_year ==2007; qui replace sample=1 if campus==125903001& rated_year ==2005; qui replace sample=1 if campus==8902001& rated_year ==2006; qui replace sample=1 if campus==220905014& rated_year ==2000; qui replace sample=1 if campus==71905014& rated_year ==1999; qui replace sample=1 if campus==70907001& rated_year ==1997; qui replace sample=1 if campus==247901001& rated_year ==1995; qui replace sample=1 if campus==123914001& rated_year ==1996; qui replace sample=1 if campus==8902001& rated_year ==1994; qui replace sample=1 if campus==7901001& rated_year ==1998; qui replace sample=1 if campus==82902001& rated_year ==1996; qui replace sample=1 if campus==175902001& rated_year ==2004; qui replace sample=1 if campus==3907001& rated_year ==2008; qui replace sample=1 if campus==8901001& rated_year ==2000; qui replace sample=1 if campus==176903001& rated_year ==1996; qui replace sample=1 if campus==248902001& rated_year ==2003; qui replace sample=1 if campus==203901002& rated_year ==2007; qui replace sample=1 if campus==7906001& rated_year ==2005; qui replace sample=1 if campus==212903001& rated_year ==2008; qui replace sample=1 if campus==101902005& rated_year ==1999; qui replace sample=1 if campus==188901004& rated_year ==2008; qui replace sample=1 if campus==57906001& rated_year ==2002; qui replace sample=1 if campus==7906001& rated_year ==1995; qui replace sample=1 if campus==15915001& rated_year ==1999; qui replace sample=1 if campus==93901001& rated_year ==2005; qui replace sample=1 if campus==15907002& rated_year ==1997; qui replace sample=1 if campus==189902001& rated_year ==1996; qui replace sample=1 if campus==1904001& rated_year ==2003; qui replace sample=1 if campus==7905001& rated_year ==2007; qui replace sample=1 if campus==61902001& rated_year ==1997; qui replace sample=1 if campus==108906002& rated_year ==1994; qui replace sample=1 if campus==7905001& rated_year ==1998; qui replace sample=1 if campus==178908001& rated_year ==2006; qui replace sample=1 if campus==176903001& rated_year ==1997; qui replace sample=1 if campus==19903001& rated_year ==1994; qui replace sample=1 if campus==7904001& rated_year ==2000; qui replace sample=1 if campus==91902001& rated_year ==2005; qui replace sample=1 if campus==7904001& rated_year ==1997; qui replace sample=1 if campus==15917001& rated_year ==2005; qui replace sample=1 if campus==220918001& rated_year ==1998; qui replace sample=1 if campus==250906001& rated_year ==1994; qui replace sample=1 if campus==247904001& rated_year ==1994; qui replace sample=1 if campus==185903001& rated_year ==2008; qui replace sample=1 if campus==71901001& rated_year ==1995; qui replace sample=1 if campus==126901001& rated_year ==2001; qui replace sample=1 if campus==36903001& rated_year ==2006; qui replace sample=1 if campus==71902003& rated_year ==2002; qui replace sample=1 if campus==84910002& rated_year ==2005; qui replace sample=1 if campus==101910003& rated_year ==2002; qui replace sample=1 if campus==15912001& rated_year ==2001; qui replace sample=1 if campus==91903001& rated_year ==2003; qui replace sample=1 if campus==95903001& rated_year ==2006; qui replace sample=1 if campus==7902001& rated_year ==1997; qui replace sample=1 if campus==187904001& rated_year ==1997; qui replace sample=1 if campus==57903001& rated_year ==2002; qui replace sample=1 if campus==101912024& rated_year ==2000; qui replace sample=1 if campus==7901001& rated_year ==2006; qui replace sample=1 if campus==7901001& rated_year ==2000; qui replace sample=1 if campus==8901001& rated_year ==2007; qui replace sample=1 if campus==200902001& rated_year ==2008; qui replace sample=1 if campus==163904001& rated_year ==2000; qui replace sample=1 if campus==150901001& rated_year ==2008; qui replace sample=1 if campus==107904001& rated_year ==1996; qui replace sample=1 if campus==6902001& rated_year ==2002; qui replace sample=1 if campus==6902001& rated_year ==2000; qui replace sample=1 if campus==57914003& rated_year ==2005; qui replace sample=1 if campus==19912001& rated_year ==2002; qui replace sample=1 if campus==179901001& rated_year ==2002; qui replace sample=1 if campus==143901001& rated_year ==2001; qui replace sample=1 if campus==139911002& rated_year ==1995; qui replace sample=1 if campus==198905002& rated_year ==1997; qui replace sample=1 if campus==220904001& rated_year ==2005; qui replace sample=1 if campus==221911001& rated_year ==2000; qui replace sample=1 if campus==199902002& rated_year ==1995; qui replace sample=1 if campus==69902001& rated_year ==2008; qui replace sample=1 if campus==65901001& rated_year ==2006; qui replace sample=1 if campus==5902001& rated_year ==2008; qui replace sample=1 if campus==15915007& rated_year ==1995; qui replace sample=1 if campus==252903001& rated_year ==2007; qui replace sample=1 if campus==5902001& rated_year ==2002; qui replace sample=1 if campus==238902001& rated_year ==1997; qui replace sample=1 if campus==137903001& rated_year ==2008; qui replace sample=1 if campus==100903002& rated_year ==1998; qui replace sample=1 if campus==185901001& rated_year ==2003; qui replace sample=1 if campus==57909002& rated_year ==1995; qui replace sample=1 if campus==20905002& rated_year ==2002; qui replace sample=1 if campus==15911001& rated_year ==2003; qui replace sample=1 if campus==57905017& rated_year ==1998; qui replace sample=1 if campus==220915001& rated_year ==1997; qui replace sample=1 if campus==101912012& rated_year ==1999; qui replace sample=1 if campus==165901044& rated_year ==1995; qui replace sample=1 if campus==149901001& rated_year ==1995; qui replace sample=1 if campus==237904002& rated_year ==1999; qui replace sample=1 if campus==166901002& rated_year ==1996; qui replace sample=1 if campus==61912001& rated_year ==2005; qui replace sample=1 if campus==220905016& rated_year ==2000; qui replace sample=1 if campus==223901001& rated_year ==1997; qui replace sample=1 if campus==220905014& rated_year ==2004; qui replace sample=1 if campus==161920001& rated_year ==2004; qui replace sample=1 if campus==170902005& rated_year ==2005; qui replace sample=1 if campus==221901002& rated_year ==1999; qui replace sample=1 if campus==127901001& rated_year ==2002; qui replace sample=1 if campus==26901001& rated_year ==2007; qui replace sample=1 if campus==206901001& rated_year ==2005; qui replace sample=1 if campus==126905001& rated_year ==2000; qui replace sample=1 if campus==3907001& rated_year ==2005; qui replace sample=1 if campus==123914001& rated_year ==2008; qui replace sample=1 if campus==3907001& rated_year ==2001; qui replace sample=1 if campus==94904001& rated_year ==2006; qui replace sample=1 if campus==107904001& rated_year ==2008; qui replace sample=1 if campus==214903001& rated_year ==2000; qui replace sample=1 if campus==161922001& rated_year ==1999; qui replace sample=1 if campus==101912028& rated_year ==1995; qui replace sample=1 if campus==50902001& rated_year ==2002; qui replace sample=1 if campus==170903002& rated_year ==2003; qui replace sample=1 if campus==161906002& rated_year ==2008; qui replace sample=1 if campus==30901001& rated_year ==1997; qui replace sample=1 if campus==101907004& rated_year ==1995; qui replace sample=1 if campus==121906001& rated_year ==1999; qui replace sample=1 if campus==161912001& rated_year ==2005; qui replace sample=1 if campus==220904001& rated_year ==1995; qui replace sample=1 if campus==101912009& rated_year ==2006; qui replace sample=1 if campus==91917001& rated_year ==2002; qui replace sample=1 if campus==54903001& rated_year ==1996; qui replace sample=1 if campus==101912020& rated_year ==1995; qui replace sample=1 if campus==16901001& rated_year ==1997; qui replace sample=1 if campus==107906001& rated_year ==2003; qui replace sample=1 if campus==220915001& rated_year ==2001; qui replace sample=1 if campus==3905001& rated_year ==2007; qui replace sample=1 if campus==212905001& rated_year ==2006; qui replace sample=1 if campus==71909002& rated_year ==2006; qui replace sample=1 if campus==229905001& rated_year ==1996; qui replace sample=1 if campus==57909005& rated_year ==2008; qui replace sample=1 if campus==3905001& rated_year ==1998; qui replace sample=1 if campus==101912020& rated_year ==2008; qui replace sample=1 if campus==174903001& rated_year ==2005; qui replace sample=1 if campus==49901001& rated_year ==2004; qui replace sample=1 if campus==31901001& rated_year ==2000; qui replace sample=1 if campus==143901001& rated_year ==1995; qui replace sample=1 if campus==161912001& rated_year ==2004; qui replace sample=1 if campus==116916001& rated_year ==2004; qui replace sample=1 if campus==227901013& rated_year ==2005; qui replace sample=1 if campus==84901001& rated_year ==1997; qui replace sample=1 if campus==142901001& rated_year ==1998; qui replace sample=1 if campus==145911002& rated_year ==1997; qui replace sample=1 if campus==175904001& rated_year ==2006; qui replace sample=1 if campus==201914001& rated_year ==2000; qui replace sample=1 if campus==92906002& rated_year ==2008; qui replace sample=1 if campus==161919001& rated_year ==2008; qui replace sample=1 if campus==188903001& rated_year ==2006; qui replace sample=1 if campus==188901004& rated_year ==2005; qui replace sample=1 if campus==84910003& rated_year ==2005; qui replace sample=1 if campus==250907001& rated_year ==1999; qui replace sample=1 if campus==101912007& rated_year ==2001; qui replace sample=1 if campus==57905009& rated_year ==1995; qui replace sample=1 if campus==110907001& rated_year ==2004; qui replace sample=1 if campus==187907002& rated_year ==1999; qui replace sample=1 if campus==133904001& rated_year ==2005; qui replace sample=1 if campus==248901001& rated_year ==2006; qui replace sample=1 if campus==116909001& rated_year ==1994; qui replace sample=1 if campus==57905037& rated_year ==1999; qui replace sample=1 if campus==21901001& rated_year ==2004; qui replace sample=1 if campus==92903001& rated_year ==1998; qui replace sample=1 if campus==15915002& rated_year ==2007; qui replace sample=1 if campus==70915001& rated_year ==1994; qui replace sample=1 if campus==19903001& rated_year ==2001; qui replace sample=1 if campus==101920003& rated_year ==1994; qui replace sample=1 if campus==43905001& rated_year ==2005; qui replace sample=1 if campus==35901001& rated_year ==1997; qui replace sample=1 if campus==220905005& rated_year ==2000; qui replace sample=1 if campus==126905001& rated_year ==2005; qui replace sample=1 if campus==229904001& rated_year ==1994; qui replace sample=1 if campus==178908001& rated_year ==2003; qui replace sample=1 if campus==68901003& rated_year ==1995; qui replace sample=1 if campus==38901001& rated_year ==2004; qui replace sample=1 if campus==129904001& rated_year ==1994; qui replace sample=1 if campus==247904001& rated_year ==2004; qui replace sample=1 if campus==122901002& rated_year ==2003; qui replace sample=1 if campus==109905001& rated_year ==2002; qui replace sample=1 if campus==227907001& rated_year ==2002; qui replace sample=1 if campus==24901001& rated_year ==1998; qui replace sample=1 if campus==71902005& rated_year ==2000; qui replace sample=1 if campus==157901001& rated_year ==1994; qui replace sample=1 if campus==232903002& rated_year ==1996; qui replace sample=1 if campus==65901001& rated_year ==2007; qui replace sample=1 if campus==101909002& rated_year ==2005; qui replace sample=1 if campus==101906001& rated_year ==1996; qui replace sample=1 if campus==12901001& rated_year ==2007; qui replace sample=1 if campus==55901001& rated_year ==2008; qui replace sample=1 if campus==172905002& rated_year ==2001; qui replace sample=1 if campus==137903001& rated_year ==2005; qui replace sample=1 if campus==91901001& rated_year ==1997; qui replace sample=1 if campus==2901001& rated_year ==2004; qui replace sample=1 if campus==2901001& rated_year ==2002; qui replace sample=1 if campus==31906001& rated_year ==2001; qui replace sample=1 if campus==165901042& rated_year ==2008; qui replace sample=1 if campus==174902001& rated_year ==1997; qui replace sample=1 if campus==161909001& rated_year ==1995; qui replace sample=1 if campus==102904002& rated_year ==1996; qui replace sample=1 if campus==57904001& rated_year ==2005; qui replace sample=1 if campus==53001001& rated_year ==2006; qui replace sample=1 if campus==247903001& rated_year ==2003; qui replace sample=1 if campus==19912001& rated_year ==1999; qui replace sample=1 if campus==15905003& rated_year ==2004; qui replace sample=1 if campus==127903001& rated_year ==2008; qui replace sample=1 if campus==191901002& rated_year ==2000; qui replace sample=1 if campus==176903001& rated_year ==2002; qui replace sample=1 if campus==1908002& rated_year ==1997; qui replace sample=1 if campus==1908002& rated_year ==1996; qui replace sample=1 if campus==153904001& rated_year ==1994; qui replace sample=1 if campus==184908001& rated_year ==2002; qui replace sample=1 if campus==1907001& rated_year ==2001; qui replace sample=1 if campus==250906001& rated_year ==1998; qui replace sample=1 if campus==1907001& rated_year ==1999; qui replace sample=1 if campus==101912006& rated_year ==1995; qui replace sample=1 if campus==1907001& rated_year ==1995; qui replace sample=1 if campus==145906001& rated_year ==2007; qui replace sample=1 if campus==79906001& rated_year ==1998; qui replace sample=1 if campus==40901001& rated_year ==1997; qui replace sample=1 if campus==141902001& rated_year ==1995; qui replace sample=1 if campus==161922001& rated_year ==2006; qui replace sample=1 if campus==57905018& rated_year ==2002; qui replace sample=1 if campus==163901001& rated_year ==2008; qui replace sample=1 if campus==101912005& rated_year ==1997; qui replace sample=1 if campus==144901001& rated_year ==1996; qui replace sample=1 if campus==1903001& rated_year ==2008; qui replace sample=1 if campus==1903001& rated_year ==2004; qui replace sample=1 if campus==1903001& rated_year ==2002; qui replace sample=1 if campus==57912004& rated_year ==2002; qui replace sample=1 if campus==249906001& rated_year ==2002; qui replace sample=1 if campus==126905001& rated_year ==1995; qui replace sample=1 if campus==100908001& rated_year ==2004; qui replace sample=1 if campus==43903001& rated_year ==1999; qui replace sample=1 if campus==220905006& rated_year ==2000; 
#delimit cr
duplicates drop
*explicitly only keep schools that Maya has designated at "sample schools"
save data/AEISrating_short.dta, replace


*1994 create from microdata 10th for RIs
use ${source}tea\assess\taas\taas_94\taasx_mar_1994.dta, clear 
keep campus ethnic economic ssnrep tlimth 
ren campus campus9
g year_9=1994
g race = 1 if ethnic==5
replace race=2 if ethnic==3
replace race=3 if ethnic==4
keep if race!=.
g frpl=(economic>=1)
g g10mscale_pass=(tlim>=70)
drop ethnic economic tlim
preserve
collapse (count) g9enroll=ssnrep, by(campus year_9)
tempfile count
save "`count'"
restore
preserve
collapse (mean) g10*scale_pass   (count) N  = ssnrep, by(campus year_9 race)
tempfile race
save "`race'"
restore
collapse (mean) g10*scale_pass   (count) N  = ssnrep, by(campus year_9 frpl)
tempfile frpl
save "`frpl'"
append using "`race'"
merge m:1 campus9 year_9 using "`count'", nogen
gen group = race
replace group=4 if frpl==1
drop if frpl==0
drop race frpl
save data\passrate10_1994.dta, replace

*this part can't be created at ERC so comment out if needed
*1991-1993
use O:\projects\LTSO\Maya\Maya\AEIS_and_outcomes.dta , clear
drop att_a_cy-_mrg_AEISoutcomes 
drop sample-pred_rate_f campname
keep if year <=1993
drop taas_3* taas_7* taas_9*
g N_w=white_p*g10_c
g N_b=black_p*g10_c
g N_h=hisp_p*g10_c
g N_e=econ_p*g10_c
g N_a=g10_c
drop enrollment-econ_p
drop  taas_11a_*
drop N*

reshape wide taas_11* ,i(campus) j(year)
ren campus campus9
tempfile early
save "`early'"

use O:\data\tsp_erc\tea\assess\taas\taas_94\taasx_mar_1994.dta, clear 
keep campus ethnic economic ssnrep tlimth tlired sscw
ren campus campus9
g year_9=1994
g race = 1 if ethnic==5
replace race=2 if ethnic==3
replace race=3 if ethnic==4
keep if race!=.
g frpl=(economic>=1)
g g10mscale_pass=(tlim>=70)
g g10rscale_pass=(tlir>=70)
g g10wscale_pass=(sscw>=1500)

drop ethnic economic tlim
preserve
collapse (mean) g10*scale_pass (count) g9enroll=ssnrep, by(campus year_9)
g group=5
tempfile count
save "`count'"
restore
preserve
collapse (mean) g10*scale_pass   (count) N  = ssnrep, by(campus year_9 race)
tempfile race
save "`race'"
restore
collapse (mean) g10*scale_pass   (count) N  = ssnrep, by(campus year_9 frpl)
tempfile frpl
save "`frpl'"
append using "`race'"
gen group = race
replace group=4 if frpl==1
drop if frpl==0
drop race frpl
append using "`count'"
g group2="_a" if group==5
replace group2="_w" if group==1
replace group2="_b" if group==2
replace group2="_h" if group==3
replace group2="_e" if group==4
drop group g9
reshape wide N g10*scale_pass , i(campus9 year_9) j(group2) string
drop N*
reshape wide g10*scale_pass* ,i(campus) j(year_9)
merge 1:m campus9 using "`early'", nogen

*DD add code, 8/20*
order campus9 *1991 *1992 *1993 *1994
foreach var of varlist taas_11r_e1991- taas_11m_w1993 {
	replace `var'=`var'/100
}
save data\testtrends.dta, replace
 
}
**************7th grade scores*******
if "$tests7"=="1"{
*this program calls on 7th grade scores as a spec check*
forvalues y=94(1)96 {
use ${source}tea\assess\taas\taas_19`y'\taas7_may_jun_19`y'.dta, clear
drop if ssnrep==.
duplicates tag ssnrep, g(tag)
recode mscode 7=99
bys ssnrep: egen anyvalid = max(mscode==99)
drop if tag>0 & anyvalid==1 & mscode!=99

duplicates tag ssnrep, g(tag1)
bys ssnrep: egen anypositive = max(rawmth>0)
drop if tag1>0 & rawmth==0 & anypositive==1

duplicates tag ssnrep, g(tag2)
bys ssnrep: egen allzeros = mean(rawmth==0)
duplicates drop ssnrep if tag2>0 & allzeros==1, force

* among few remaining duplicates, just drop a random one
duplicates tag ssnrep, g(tag3)
gen random = rnormal()
sort ssnrep random
duplicates drop ssnrep, force

rename tlimth mscale
replace mscale=. if mscode!=99
rename mscale m7scale 
gen m7scale_pass=m7scale>=70 & m7scale!=.
keep ssnrep m7scale m7scale_pass rawmth
compress
save data/g7math19`y'.dta, replace
}
forvalues y=97(1)97 {
use ${source}tea\assess\taas\taas_19`y'\taas7_apr_jun_19`y'.dta, clear
drop if ssnrep==.
duplicates tag ssnrep, g(tag)
recode mscode 7=99
bys ssnrep: egen anyvalid = max(mscode==99)
drop if tag>0 & anyvalid==1 & mscode!=99

duplicates tag ssnrep, g(tag1)
bys ssnrep: egen anypositive = max(rawmth>0)
drop if tag1>0 & rawmth==0 & anypositive==1

duplicates tag ssnrep, g(tag2)
bys ssnrep: egen allzeros = mean(rawmth==0)
duplicates drop ssnrep if tag2>0 & allzeros==1, force

* among few remaining duplicates, just drop a random one
duplicates tag ssnrep, g(tag3)
gen random = rnormal()
sort ssnrep random
duplicates drop ssnrep, force

rename tlimth mscale
replace mscale=. if mscode!=99
rename mscale m7scale
gen m7scale_pass=m7scale>=70 & m7scale!=.
keep ssnrep m7scale m7scale_pass rawmth
compress
save data/g7math19`y'.dta, replace
}
use data/g7math1994.dta, replace
g year =1994
forvalues y=1995(1)1997 {
	merge 1:1 ssnrep using data/g7math`y'.dta, keep(master using match) nogen
	replace year = `y' if year==. 
}
ren rawmth m7raw
replace m7raw=. if m7raw==0
*standardize
g m7z=.
	foreach y of numlist 1994(1)1997{
			su m7raw if year==`y'
			local mean = r(mean)
			local sd = r(sd)
			replace m7z=(m7raw-`mean')/`sd' if year==`y'
		}
		drop year
save data/g7math.dta, replace


}
}


*****SET UP ANALYSIS FILES ***
if "$setup"=="1"{
******SWITCHES**********
global part1 0 // load data sets
global part2 0 // student level prediction (note part 3 now obsolete)
global part2_fullpred 0 // Add interactions to student level prediction (note part 3 now obsolete)
global part4 0 //  create school level data set
*the section below is what needs to be modified
global part4_fullpred 0 //  with new prediction (with Required Improvment): create school level data set
global part4_avg 0 // average across cohorts: create school level data set
global part4_nodrop 0 // DO NOT DROP subgroups less than 10%
global part4_5 0 // school level groups
global part5 1 // set up analysis file for school level (LEAVEOUT, AVG IN A LOOP HERE)
global part6 0 // set up MIN PASS RATE
***********************

* PART 1: Load and tweak data
if "$part1"=="1"{

*standardize 10th grade scores for outcomes
*SRC 4.4.2013 z scores
use data/testsg10.dta, clear
ren rawred g10rraw
ren rawmth g10mraw
ren rawwrt  g10wraw
foreach s in m r w {
	replace g10`s'raw=. if g10`s'raw==0
	g g10`s'z=.
	foreach y of numlist 1994(1)2003{
			su g10`s'raw if year_9==`y'
			local mean = r(mean)
			local sd = r(sd)
			replace g10`s'z=(g10`s'raw-`mean')/`sd' if year_9==`y'
		}
	}
save data/testsg10st.dta, replace	
*key outcomes now include 1994 cohort -- see end of this section for two different files
use data/sample_demog_s.dta, clear
keep if year_9<=1999
merge 1:1 ssnrep using data/moretests.dta, keep(master match) nogen
merge 1:1 ssnrep using data/testsg10st.dta, keep(master match) nogen
merge 1:1 ssnrep using data/testsg8.dta, keep(master match) nogen
*use hs grad type now
merge 1:1 ssnrep using data/hsgradtype.dta, keep(master match) nogen
*redo enroll, now with flagship and year by year
merge 1:1 ssnrep using data/enroll_coll_with1994.dta, keep(master match) nogen
merge 1:1 ssnrep using data/BAcompletion.dta, keep(master match) nogen
*BA completion now includes AA's (4.5.2013 SRC) 
	*also public ba and aa's
*4.5 add attendance --STARTS IN 1997
merge 1:1 ssnrep using data/attendance.dta, keep(master match) nogen
*4.6 add school switching  discipline (DISP STARTS IN 1999) new sped inTX
*5.1 src ditch discipline b/c not enough data
*merge 1:1 ssnrep using /data/discipline.dta, keep(master match) nogen
merge 1:1 ssnrep using data/switchers.dta, keep(master match) nogen
merge 1:1 ssnrep using data/sped.dta, keep(master match) nogen
merge 1:1 ssnrep using data/inTX.dta, keep(master match) nogen
*add alternatives
merge 1:1 ssnrep using data/alternative.dta, keep(master match) nogen
*add math 7.18.2013, note the zero out b/c Dave didn't set up the file against the demos
merge 1:1 ssnrep using data/HSmath.dta, keep(master match) nogen
foreach var of varlist totcred_precalc ever_fail_precalc pass_precalc *_attempt *ever_pass totcred_alg1 ever_fail_alg1 totcred_geom ever_fail_geom totcred_alg2 ever_fail_alg2 pass_alg1 pass_geom pass_alg2 {
	replace `var'=0 if `var'==.
}
egen totcred_math=rowtotal( pass_alg1 pass_geom pass_alg2 pass_precalc)

compress
save data/part1_raw.dta, replace
use data/part1_raw.dta, clear

drop   campus
rename campus8 g8campus
sort year_9 ssnrep

rename mscale g10mscale
rename rescale g10rscale
rename wscale g10wscale
rename g8rawmth g8mraw
rename g8rawred g8rraw
rename g8rawwrt g8wraw

*SRC 6.10.2013 19's in scale scores (math) should be coded as missings
** 4's in reading scores
** each about 7% for the bottoms score
** this issue doesn't exist for writing scores
*DD 6.20.2013 use score codes to determine absence, special ed, etc. and code accordingly*
*code variables are equal to 7 and 99 when score is valid*
	
	replace g10mscale = . if mscode!=7 & mscode!=99
	replace g10rscale = . if rscode!=7 & rscode!=99
	replace g10wscale = . if wscode!=7 & wscode!=99
	replace g10mscale = . if g10mscale==19
	replace g10rscale = . if g10rscale==4
	replace g10wscale = . if g10wscale==490

	replace g8mscale = . if g8mscale<=6
	replace g8rscale = . if g8rscale==11
	
	gen byte g10mscale_absent=mscode==1 | mscode==4
	gen byte g10mscale_exempt=mscode==5 | mscode==8 | mscode==9
	
	*Pass exam
	*8.15.2013 SRC: missings should get coded as failures since that's what excempt codes count for
foreach s in m r {
	gen byte g8`s'scale_pass = (g8`s'scale>=70 & g8`s'scale!=.)
	gen byte g10`s'scale_pass = (g10`s'scale>=70 & g10`s'scale!=.) if year_9<2002
	replace g10`s'scale_pass = (g10`s'scale>=1500 & g10`s'scale!=.) if year_9>=2002
	}
gen byte g8wscale_pass = (g8wscale>=1500 & g8wscale!=.)
gen byte g10wscale_pass = (g10wscale>=1500 & g10wscale!=.)


bys year_9: sum *scale_pass

foreach v in g8mscale g8rscale g8wscale g8mraw g8rraw g8wraw {
	gen `v'_sq = `v' * `v'
	gen `v'_cub = `v' * `v' * `v'
	}
	
	*hs grad
	rename ontime_hsgrad hsgrad
	rename within8_hsgrad hsgrad_in8
	ren  ontime_iep_hsgrad hsgrad_iep
	ren within8_iep_hsgrad hsgrad_iep_in8
	ren ontime_min_reg_hsgrad hsgrad_min
	ren within8_min_reg_hsgrad hsgrad_min_in8
	ren ontime_dist_advhon_hsgrad hsgrad_dist
	ren within8_dist_advhon_hsgrad hsgrad_dist_in8
	
	*college enrollment
	rename ontime_enrollany anycoll
	rename ontime_enrollanyPUB anycoll_pub
	rename ontime_enroll4yr coll4yr
	rename ontime_enroll4yrPUB coll4yr_pub
	rename ontime_enroll2yr coll2yr
	rename ontime_enroll2yrPUB coll2yr_pub
	rename ontime_enroll4yrFLAGSHIP coll4yr_flagship

	rename within8_enrollany anycoll_in8
	rename within8_enrollanyPUB anycoll_pub_in8
	rename within8_enroll4yr coll4yr_in8
	rename within8_enroll4yrPUB coll4yr_pub_in8
	rename within8_enroll2yr coll2yr_in8
	rename within8_enroll2yrPUB coll2yr_pub_in8
	rename within8_enroll4yrFLAGSHIP coll4yr_flagship_in8

	egen BA = rowmax(ba_*)
	egen AA = rowmax(aa_*)
	egen BApub = rowmax(pubba_*)
	egen AApub = rowmax(pubaa_*)
	drop ba_* aa_*
	* Sample selection and manual recodes

	gen byte race = 1 if white==1
	replace race = 2 if black==1
	replace race = 3 if hisp==1
	* Drop Asian & Native American students (~3%)
	drop if race==.

	* for now, recode observations with exemptions for g8 scores to missing;  most already zero
	* Looks like zero raw score translates to a positive scaled score -- recode this too
	foreach s in m r w {
		gen g8nonexempt`s' = (g8`s'scode==99 | g8`s'scode==7)
		replace g8`s'raw=. if g8nonexempt`s'==0
		replace g8`s'scale=. if g8nonexempt`s'==0
	}
	drop *nonexempt*
	* Assuming remaining raw zeros aren't actually zeros
	foreach s in m r w {
		replace g8`s'raw=. if g8`s'raw==0
		replace g8`s'scale=. if g8`s'raw==.
	}

	***SRC add in wage files here 2.25.2013
	* Fix wage variables and bring back in ba by certain age to fix productivity variables
	set more off
	merge 1:1 ssnrep using data/wages_cumulative.dta, keep(master match) nogen
	merge 1:1 ssnrep using data/BAcompletion.dta, keep(master match) keepusing(ba_plus*) nogen

	*Create log annual earnings*
	foreach var of varlist cum_wage* cum_wage_cond* {
		replace `var'=500000 if `var'>500000 & `var'!=.
	}

	***all wage outcomes are to be conditional 3.7.2013
		*productive with BA for older students
	foreach n of numlist 8/11{		
		local n1 = `n'+15
		g byte productive`n1' = (ba_plus`n'|(cum_wage_cond_plus`n'>15000 & cum_wage_cond_plus`n'!=.))
		replace productive`n1'= . if ba_plus`n'==.&cum_wage_cond_plus`n'==.
		}
	*productive with enrollment for younger students
	foreach n of numlist 4/7{		
		local n1 = `n'+15
		g productive`n1' = (enrollany_plus`n'| cum_wage_cond_plus`n'!=.)
		replace productive`n1'= . if enrollany_plus`n'==.&cum_wage_cond_plus`n'==.
		}	
	***SRC add earlier wage outcomes
	foreach n of numlist 4/11{
		local n1 = `n'+15
		g byte pos_earn`n1'=(ln_cum_wage_plus`n'!=0&ln_cum_wage_plus`n'!=.)
		replace pos_earn`n1'= . if ln_cum_wage_plus`n'==.
		ren ln_cum_wage_cond_plus`n' ln_earn`n1'
		ren cum_wage_cond_plus`n' earn`n1'
		ren enroll2yr_plus`n' enrolled2yr_`n1'
		ren enroll2yrPUB_plus`n' enrolled2yr_pub_`n1'
		ren enroll4yr_plus`n' enrolled4yr_`n1'
		ren enroll4yrPUB_plus`n' enrolled4yr_pub_`n1'
		ren enroll4yrFLAGSHIP_plus`n' enrolled4yr_flags_`n1'
		ren enrollany_plus`n' enrolledany_`n1'
	}
		
	
	*5.1.2013 add new earnings outcomes
	g byte pos_earn23_24_25=(pos_earn23==1|pos_earn24==1|pos_earn25==1)
	egen earn25_26=rowtotal(earn25 earn26)
		replace earn25_26=. if earn25==.&earn26==.
	egen earn23_24_25_26=rowtotal(earn23 earn24 earn25 earn26)
		replace earn23_24_25_26=. if earn23==.&earn24==.& earn25==.&earn26==.
	egen earn23_24=rowtotal(earn23 earn24 )
		replace earn23_24=. if earn23==.&earn24==.
	egen earn23_24_25=rowtotal(earn23 earn24 earn25)
		replace earn23_24_25=. if earn23==.&earn24==.& earn25==.
	g ln_earn25_26=log(earn25_26)
	g ln_earn23_24_25_26=log(earn23_24_25_26)
	g ln_earn23_24=log(earn23_24)
	g ln_earn23_24_25=log(earn23_24_25)
	egen earn24_25_26=rowtotal( earn24 earn25 earn26)
		replace earn24_25_26=. if earn24==.& earn25==.&earn26==.

	* drop later cohorts until data issues are sorted out
	drop if year_9>1999
	*drop if year_9>2001

	drop *code *plus*
	*dump vars we never use for space
	drop   economic ethnic sept1_ag vocedsta cte  immig *_schl* pct_nonwhite 

	compress
	preserve
	keep if year_9>=1995
	save data/0718_2013_studentleveldata.dta, replace
	restore
	keep if year_9<=1995
		save data/0718_2013_studentleveldata_DD.dta, replace


} //end part1 switch

* PART 2: CREATE PREDICTED PROBS
if "$part2"=="1"{
use data/0718_2013_studentleveldata.dta, clear

global xtest_scale "g8mscale g8rscale g8wscale g8mscale_sq g8mscale_cub g8rscale_sq g8rscale_cub g8wscale_sq g8wscale_cub" 
global xtest_raw "g8mraw g8rraw g8wraw g8mraw_sq g8mraw_cub g8rraw_sq g8rraw_cub g8wraw_sq g8wraw_cub"
global demog "black hisp frpl male"
replace g10mscale_pass=0 if g10mscale_pass==.
replace g10rscale_pass=0 if g10rscale_pass==.
replace g10wscale_pass=0 if g10wscale_pass==.

* Predict 10th grade pass rates using 8th grade scores only
set more off
foreach t in m r w {
	logit g10`t'scale_pass $xtest_raw i.year_9
	predictnl prob_pass`t' = predict()
	}

	
* generate prediction deciles
* SRC 2.28.2013 also make quintiles
foreach t in m /*r w*/ {
	gen quint_prob_pass`t' = .
	forvalues y = 1995(1)1999 {
		xtile quint_prob_pass`t'`y' = prob_pass`t' if year_9==`y', nq(5)
		replace quint_prob_pass`t' = quint_prob_pass`t'`y' if year_9 == `y'
		}
	}
	
compress
save data/0718_2013_studentlevel.dta, replace
compress
save data/0718_2013_stud_probs.dta, replace

} //end part2 switch
*part two with interactions and demos to prediction
if "$part2_fullpred"=="1"{
use data/0718_2013_studentleveldata.dta, clear

global xtest_scale "g8mscale g8rscale g8wscale g8mscale_sq g8mscale_cub g8rscale_sq g8rscale_cub g8wscale_sq g8wscale_cub" 
global xtest_raw "g8mraw g8rraw g8wraw g8mraw_sq g8mraw_cub g8rraw_sq g8rraw_cub g8wraw_sq g8wraw_cub"
global demog "black hisp frpl "

foreach var of global demog{
foreach s in m r w {
	g `var'Xg8`s'raw=`var'*g8`s'raw
	}
	}
* Predict 10th grade pass rates using 8th grade scores only
set more off
foreach t in m r w {
	logit g10`t'scale_pass $xtest_raw $demog *Xg8*raw  i.year_9
	predictnl prob_pass`t' = predict()
	}

	
* generate prediction deciles
* SRC 2.28.2013 also make quintiles
foreach t in m /*r w*/ {
	gen quint_prob_pass`t' = .
	forvalues y = 1995(1)1999 {
		xtile quint_prob_pass`t'`y' = prob_pass`t' if year_9==`y', nq(5)
		replace quint_prob_pass`t' = quint_prob_pass`t'`y' if year_9 == `y'
		}
	}
compress
save data/0718_2013_studentlevel_fullpred.dta, replace
save data/0718_2013_stud_probs_fullpred.dta, replace

} //end part2 
* PART 4: School level
if "$part4"=="1"{
use data/0718_2013_stud_probs.dta, clear

* Collapse to get school subgroup predictions
preserve
collapse (mean) *scale* *raw* prob*  g9enroll (sem) se_prob_passm = prob_passm se_prob_passr = prob_passr se_prob_passw = prob_passw (count) N=ssnrep, by(campus year_9 race)
save data/0718_2013_temp_race.dta, replace
restore
collapse (mean) *scale* *raw* prob*  g9enroll (sem) se_prob_passm = prob_passm se_prob_passr = prob_passr se_prob_passw = prob_passw  (count) N=ssnrep, by(campus year_9 frpl)
save data/0718_2013_temp_econ.dta, replace
append using data/0718_2013_temp_race.dta
gen group = race
replace group=4 if frpl==1
drop if frpl==0
drop race frpl
sort campus year group
order campus year group, first

foreach t in A R E {
	gen cutoff`t' = .
	}
gen rated_year=year_9+1	
/* fix this when you get ratings cutoffs for TAKS era */
replace cutoffE = .90 if rated_year>=1994 & rated_year<=2002
replace cutoffR = .65 if rated_year==1994 
replace cutoffR = .70 if rated_year==1995 
replace cutoffR = .70 if rated_year==1996 
replace cutoffR = .75 if rated_year==1997
replace cutoffR = .80 if rated_year>=1998 & rated_year<=2002
replace cutoffA = .25 if rated_year==1994
replace cutoffA = .25 if rated_year==1995 
replace cutoffA = .30 if rated_year==1996 
replace cutoffA = .35 if rated_year==1997 
replace cutoffA = .40 if rated_year==1998
replace cutoffA = .45 if rated_year==1999 
replace cutoffA = .50 if rated_year==2000 
replace cutoffA = .50 if rated_year==2001 
replace cutoffA = .55 if rated_year==2002 

save data/0718_13_subgroup_interim, replace
use data/0718_13_subgroup_interim, clear

* now paste a few columns into Excel to quickly integrate
*SRC 8.15.2013 NOW IN STATA!
keep campus year group prob_pass* se_prob_pass*  cutoff*
foreach s in m r w{
g plp`s'=normal((cutoffA-prob_pass`s')/ se_prob_pass`s')
g pa`s'=normal((cutoffR-prob_pass`s')/ se_prob_pass`s')-plp`s'
g pr`s'=normal((cutoffE-prob_pass`s')/ se_prob_pass`s')-(plp`s' +pa`s')
g pe`s'=normal((1-prob_pass`s')/ se_prob_pass`s')-(plp`s' +pa`s' +pr`s')
}

save data/0718_13_computed_integrals.dta, replace

merge 1:1 campus year group using data/0718_13_subgroup_interim.dta
drop cutoff* _merge 

*some groups are too small to get means or SEs
*SRC 4.4.2013 switch to 30 kids
count
*27913
*drop if N<10

drop if N<30
count
*11149
*SRC drop if subgroup less than 10%
g percent = N/g9enrollment
drop if percent<.1
drop percent 
count
*10592


set more off
reshape wide prob_passm - N, i(campus9 year_9) j(group)

* Calculate conditional probabilities that each subgroup is the bottleneck in its school in each year
* Pr that only one group is the bottleneck: 1 or 2 or 3 or 4

* if the group is missing for that school, then its probability of being the bottleneck is zero
* this might be a problem with the BNgroups code later on
foreach s in m r w {
	foreach r in lp a r e {
	forvalues g = 1(1)4{
		replace p`r'`s'`g' = 0 if p`r'`s'`g'==.
		}
	}	
}	

foreach s in m /* r w */ {
local a = 1
local b = 2
local c = 3
local d = 4
gen pbn_`a'`s' = plp`s'`a' * (1-plp`s'`b') * (1-plp`s'`c') * (1-plp`s'`d') ///
	+ pa`s'`a' * (1-(plp`s'`b' + pa`s'`b')) * (1-(plp`s'`c' + pa`s'`c')) * (1-(plp`s'`d' + pa`s'`d')) ///
	+ pr`s'`a' * (1-(plp`s'`b' + pa`s'`b' + pr`s'`b')) * (1-(plp`s'`c' + pa`s'`c' + pr`s'`c')) * (1-(plp`s'`d' + pa`s'`d' + pr`s'`d')) ///
	+ pe`s'`a' * (1-(plp`s'`b' + pa`s'`b' + pr`s'`b' + pe`s'`b')) * (1-(plp`s'`c' + pa`s'`c' + pr`s'`c' + pe`s'`c')) * (1-(plp`s'`d' + pa`s'`d' + pr`s'`d' + pe`s'`d')) 
	
local a = 2
local b = 1
local c = 3
local d = 4
gen pbn_`a'`s' = plp`s'`a' * (1-plp`s'`b') * (1-plp`s'`c') * (1-plp`s'`d') ///
	+ pa`s'`a' * (1-(plp`s'`b' + pa`s'`b')) * (1-(plp`s'`c' + pa`s'`c')) * (1-(plp`s'`d' + pa`s'`d')) ///
	+ pr`s'`a' * (1-(plp`s'`b' + pa`s'`b' + pr`s'`b')) * (1-(plp`s'`c' + pa`s'`c' + pr`s'`c')) * (1-(plp`s'`d' + pa`s'`d' + pr`s'`d')) ///
	+ pe`s'`a' * (1-(plp`s'`b' + pa`s'`b' + pr`s'`b' + pe`s'`b')) * (1-(plp`s'`c' + pa`s'`c' + pr`s'`c' + pe`s'`c')) * (1-(plp`s'`d' + pa`s'`d' + pr`s'`d' + pe`s'`d')) 
	
local a = 3
local b = 1
local c = 2
local d = 4
gen pbn_`a'`s' = plp`s'`a' * (1-plp`s'`b') * (1-plp`s'`c') * (1-plp`s'`d') ///
	+ pa`s'`a' * (1-(plp`s'`b' + pa`s'`b')) * (1-(plp`s'`c' + pa`s'`c')) * (1-(plp`s'`d' + pa`s'`d')) ///
	+ pr`s'`a' * (1-(plp`s'`b' + pa`s'`b' + pr`s'`b')) * (1-(plp`s'`c' + pa`s'`c' + pr`s'`c')) * (1-(plp`s'`d' + pa`s'`d' + pr`s'`d')) ///
	+ pe`s'`a' * (1-(plp`s'`b' + pa`s'`b' + pr`s'`b' + pe`s'`b')) * (1-(plp`s'`c' + pa`s'`c' + pr`s'`c' + pe`s'`c')) * (1-(plp`s'`d' + pa`s'`d' + pr`s'`d' + pe`s'`d')) 
		
local a = 4
local b = 1
local c = 2
local d = 3
gen pbn_`a'`s' = plp`s'`a' * (1-plp`s'`b') * (1-plp`s'`c') * (1-plp`s'`d') ///
	+ pa`s'`a' * (1-(plp`s'`b' + pa`s'`b')) * (1-(plp`s'`c' + pa`s'`c')) * (1-(plp`s'`d' + pa`s'`d')) ///
	+ pr`s'`a' * (1-(plp`s'`b' + pa`s'`b' + pr`s'`b')) * (1-(plp`s'`c' + pa`s'`c' + pr`s'`c')) * (1-(plp`s'`d' + pa`s'`d' + pr`s'`d')) ///
	+ pe`s'`a' * (1-(plp`s'`b' + pa`s'`b' + pr`s'`b' + pe`s'`b')) * (1-(plp`s'`c' + pa`s'`c' + pr`s'`c' + pe`s'`c')) * (1-(plp`s'`d' + pa`s'`d' + pr`s'`d' + pe`s'`d')) 
	
* Pr that two groups are the bottleneck: ab + ac + ad + bc + bd + cd
local a = 1
local b = 2
local c = 3
local d = 4
gen pbn_`a'`b'`s' = (plp`s'`a' * plp`s'`b') * (1-plp`s'`c') * (1-plp`s'`d') ///
	+ (pa`s'`a' * pa`s'`b') * (1-(plp`s'`c' + pa`s'`c')) * (1-(plp`s'`d' + pa`s'`d')) ///
	+ (pr`s'`a' * pr`s'`b') * (1-(plp`s'`c' + pa`s'`c' + pr`s'`c')) * (1-(plp`s'`d' + pa`s'`d' + pr`s'`d')) ///
	+ (pe`s'`a' * pe`s'`b') * (1-(plp`s'`c' + pa`s'`c' + pr`s'`c' + pe`s'`c')) * (1-(plp`s'`d' + pa`s'`d' + pr`s'`d' + pe`s'`d')) 
	
local a = 1
local b = 3
local c = 2
local d = 4
gen pbn_`a'`b'`s' = (plp`s'`a' * plp`s'`b') * (1-plp`s'`c') * (1-plp`s'`d') ///
	+ (pa`s'`a' * pa`s'`b') * (1-(plp`s'`c' + pa`s'`c')) * (1-(plp`s'`d' + pa`s'`d')) ///
	+ (pr`s'`a' * pr`s'`b') * (1-(plp`s'`c' + pa`s'`c' + pr`s'`c')) * (1-(plp`s'`d' + pa`s'`d' + pr`s'`d')) ///
	+ (pe`s'`a' * pe`s'`b') * (1-(plp`s'`c' + pa`s'`c' + pr`s'`c' + pe`s'`c')) * (1-(plp`s'`d' + pa`s'`d' + pr`s'`d' + pe`s'`d')) 
	
local a = 1
local b = 4
local c = 2
local d = 3
gen pbn_`a'`b'`s' = (plp`s'`a' * plp`s'`b') * (1-plp`s'`c') * (1-plp`s'`d') ///
	+ (pa`s'`a' * pa`s'`b') * (1-(plp`s'`c' + pa`s'`c')) * (1-(plp`s'`d' + pa`s'`d')) ///
	+ (pr`s'`a' * pr`s'`b') * (1-(plp`s'`c' + pa`s'`c' + pr`s'`c')) * (1-(plp`s'`d' + pa`s'`d' + pr`s'`d')) ///
	+ (pe`s'`a' * pe`s'`b') * (1-(plp`s'`c' + pa`s'`c' + pr`s'`c' + pe`s'`c')) * (1-(plp`s'`d' + pa`s'`d' + pr`s'`d' + pe`s'`d')) 

local a = 2
local b = 3
local c = 1
local d = 4
gen pbn_`a'`b'`s' = (plp`s'`a' * plp`s'`b') * (1-plp`s'`c') * (1-plp`s'`d') ///
	+ (pa`s'`a' * pa`s'`b') * (1-(plp`s'`c' + pa`s'`c')) * (1-(plp`s'`d' + pa`s'`d')) ///
	+ (pr`s'`a' * pr`s'`b') * (1-(plp`s'`c' + pa`s'`c' + pr`s'`c')) * (1-(plp`s'`d' + pa`s'`d' + pr`s'`d')) ///
	+ (pe`s'`a' * pe`s'`b') * (1-(plp`s'`c' + pa`s'`c' + pr`s'`c' + pe`s'`c')) * (1-(plp`s'`d' + pa`s'`d' + pr`s'`d' + pe`s'`d')) 	

local a = 2
local b = 4
local c = 1
local d = 3
gen pbn_`a'`b'`s' = (plp`s'`a' * plp`s'`b') * (1-plp`s'`c') * (1-plp`s'`d') ///
	+ (pa`s'`a' * pa`s'`b') * (1-(plp`s'`c' + pa`s'`c')) * (1-(plp`s'`d' + pa`s'`d')) ///
	+ (pr`s'`a' * pr`s'`b') * (1-(plp`s'`c' + pa`s'`c' + pr`s'`c')) * (1-(plp`s'`d' + pa`s'`d' + pr`s'`d')) ///
	+ (pe`s'`a' * pe`s'`b') * (1-(plp`s'`c' + pa`s'`c' + pr`s'`c' + pe`s'`c')) * (1-(plp`s'`d' + pa`s'`d' + pr`s'`d' + pe`s'`d')) 
	
local a = 3
local b = 4
local c = 1
local d = 2
gen pbn_`a'`b'`s' = (plp`s'`a' * plp`s'`b') * (1-plp`s'`c') * (1-plp`s'`d') ///
	+ (pa`s'`a' * pa`s'`b') * (1-(plp`s'`c' + pa`s'`c')) * (1-(plp`s'`d' + pa`s'`d')) ///
	+ (pr`s'`a' * pr`s'`b') * (1-(plp`s'`c' + pa`s'`c' + pr`s'`c')) * (1-(plp`s'`d' + pa`s'`d' + pr`s'`d')) ///
	+ (pe`s'`a' * pe`s'`b') * (1-(plp`s'`c' + pa`s'`c' + pr`s'`c' + pe`s'`c')) * (1-(plp`s'`d' + pa`s'`d' + pr`s'`d' + pe`s'`d')) 		
	
* 3-combos: 123 124 234 134 
local a = 1
local b = 2
local c = 3
local d = 4
gen pbn_`a'`b'`c'`s' = (plp`s'`a' * plp`s'`b' * plp`s'`c') * (1-plp`s'`d') ///
	+ (pa`s'`a' * pa`s'`b' * pa`s'`c') * (1-(plp`s'`d' + pa`s'`d')) ///
	+ (pr`s'`a' * pr`s'`b' * pr`s'`c') * (1-(plp`s'`d' + pa`s'`d' + pr`s'`d')) ///
	+ (pe`s'`a' * pe`s'`b' * pe`s'`c') * (1-(plp`s'`d' + pa`s'`d' + pr`s'`d' + pe`s'`d')) 
	
local a = 1
local b = 2
local c = 4
local d = 3
gen pbn_`a'`b'`c'`s' = (plp`s'`a' * plp`s'`b' * plp`s'`c') * (1-plp`s'`d') ///
	+ (pa`s'`a' * pa`s'`b' * pa`s'`c') * (1-(plp`s'`d' + pa`s'`d')) ///
	+ (pr`s'`a' * pr`s'`b' * pr`s'`c') * (1-(plp`s'`d' + pa`s'`d' + pr`s'`d')) ///
	+ (pe`s'`a' * pe`s'`b' * pe`s'`c') * (1-(plp`s'`d' + pa`s'`d' + pr`s'`d' + pe`s'`d')) 
	
local a = 2
local b = 3
local c = 4
local d = 1
gen pbn_`a'`b'`c'`s' = (plp`s'`a' * plp`s'`b' * plp`s'`c') * (1-plp`s'`d') ///
	+ (pa`s'`a' * pa`s'`b' * pa`s'`c') * (1-(plp`s'`d' + pa`s'`d')) ///
	+ (pr`s'`a' * pr`s'`b' * pr`s'`c') * (1-(plp`s'`d' + pa`s'`d' + pr`s'`d')) ///
	+ (pe`s'`a' * pe`s'`b' * pe`s'`c') * (1-(plp`s'`d' + pa`s'`d' + pr`s'`d' + pe`s'`d')) 
	
local a = 1
local b = 3
local c = 4
local d = 2
gen pbn_`a'`b'`c'`s' = (plp`s'`a' * plp`s'`b' * plp`s'`c') * (1-plp`s'`d') ///
	+ (pa`s'`a' * pa`s'`b' * pa`s'`c') * (1-(plp`s'`d' + pa`s'`d')) ///
	+ (pr`s'`a' * pr`s'`b' * pr`s'`c') * (1-(plp`s'`d' + pa`s'`d' + pr`s'`d')) ///
	+ (pe`s'`a' * pe`s'`b' * pe`s'`c') * (1-(plp`s'`d' + pa`s'`d' + pr`s'`d' + pe`s'`d')) 

* Pr all four are equal
local a = 1
local b = 2
local c = 3
local d = 4
gen pbn_`a'`b'`c'`d'`s' = (plp`s'`a' * plp`s'`b' * plp`s'`c' * plp`s'`d') ///
	+ (pa`s'`a' * pa`s'`b' * pa`s'`c' * pa`s'`d')  ///
	+ (pr`s'`a' * pr`s'`b' * pr`s'`c' * pr`s'`d') ///
	+ (pe`s'`a' * pe`s'`b' * pe`s'`c' * pe`s'`d')
}	

* If only one group in the school, it must be the bottleneck
replace pbn_1m = 1 if N1!=. & N2==. & N3==. & N4==.
replace pbn_2m = 1 if N2!=. & N1==. & N3==. & N4==.
replace pbn_3m = 1 if N3!=. & N1==. & N2==. & N4==.
replace pbn_4m = 1 if N4!=. & N1==. & N2==. & N3==.

* check that the total bottleneck probabilities sum up to 1 within subject
foreach s in m /*r w*/ {
	egen temp`s' = rowtotal(pbn_*`s')
	}
* lots are zero -- look into this -- caused by missing subgroups I think
sum tempm if tempm!=0
drop temp*

* renorm pbn* by dividing by (1-pbn_1234m)
foreach v in pbn_1m pbn_2m pbn_3m pbn_4m pbn_12m pbn_13m pbn_14m pbn_23m pbn_24m pbn_34m pbn_123m pbn_124m pbn_234m pbn_134m {
	gen n`v' = `v'/(1-pbn_1234m)
	}
egen max_pbn = rowmax(npbn*)
gen BNgroups=.
foreach n in 1 2 3 4 12 13 14 23 24 34 123 124 234 134 {
	replace BNgroups = `n' if max_pbn==npbn_`n'm
	}
gen BNgroup1 = 1 if BNgroups == 1 | BNgroups == 12 | BNgroups == 13 |  BNgroups == 14 | BNgroups == 123 | BNgroups == 124 | BNgroups == 134
replace BNgroup1 = 2 if BNgroups == 2 | BNgroups == 23 | BNgroups == 24 |  BNgroups == 234
replace BNgroup1 = 3 if BNgroups == 3 | BNgroups == 34
replace BNgroup1 = 4 if BNgroups == 4 
gen BNgroup2 = 2 if BNgroups == 12 | BNgroups == 123 |  BNgroups == 124
replace BNgroup2 = 3 if BNgroups == 13 | BNgroups==23 | BNgroups == 234 |  BNgroups == 134
replace BNgroup2 = 4 if BNgroups == 14 | BNgroups == 24 |  BNgroups == 34
gen BNgroup3 = 3 if BNgroups == 123 
replace BNgroup3 = 4 if BNgroups == 234 | BNgroups == 134

* pbn_m* gives the probabilitiy that the enumerated groups have the lowest rating. it doesn't tell us what that rating is.
* below we derive the probability that a school ends up in one of the four ratings
* kind of clunky because probabilities depend on which groups are missing
gen t = 1 if N1!=. & N2==. & N3==. & N4==.
replace t = 2 if N2!=. & N1==. & N3==. & N4==.
replace t = 3 if N3!=. & N1==. & N2==. & N4==.
replace t = 4 if N4!=. & N1==. & N2==. & N3==.

replace t = 12 if N1!=. & N2!=. & N3==. & N4==.
replace t = 13 if N1!=. & N2==. & N3!=. & N4==.
replace t = 14 if N1!=. & N2==. & N3==. & N4!=.

replace t = 23 if N1==. & N2!=. & N3!=. & N4==.
replace t = 24 if N1==. & N2!=. & N3==. & N4!=.
replace t = 34 if N1==. & N2==. & N3!=. & N4!=.

replace t = 123 if N1!=. & N2!=. & N3!=. & N4==.
replace t = 124 if N1!=. & N2!=. & N3==. & N4!=.
replace t = 134 if N1!=. & N2==. & N3!=. & N4!=.
replace t = 234 if N1==. & N2!=. & N3!=. & N4!=.

replace t = 1234 if N1!=. & N2!=. & N3!=. & N4!=.

* Exemplary schools
gen p_schE = pem1 * pem2 * pem3 * pem4 if t == 1234
replace p_schE = pem1 * pem2 * pem3 if t == 123
replace p_schE = pem1 * pem2 * pem4 if t == 124
replace p_schE = pem1 * pem3 * pem4 if t == 134
replace p_schE = pem2 * pem3 * pem4 if t == 234
replace p_schE = pem1 * pem2 if t == 12
replace p_schE = pem1 * pem3 if t == 13
replace p_schE = pem1 * pem4 if t == 14
replace p_schE = pem2 * pem3 if t == 23
replace p_schE = pem2 * pem4 if t == 24
replace p_schE = pem3 * pem4 if t == 34
forvalues g = 1(1)4{
replace p_schE = pem`g' if t == `g'
}
* Recognized schools
gen p_schR = ((pem1 + prm1) * (pem2 + prm2) * (pem3 + prm3) * (pem4 + prm4)) - p_schE if t == 1234
replace p_schR = ((pem1 + prm1) * (pem2 + prm2) * (pem3 + prm3)) - p_schE if t == 123
replace p_schR = ((pem1 + prm1) * (pem2 + prm2) * (pem4 + prm4)) - p_schE if t == 124
replace p_schR = ((pem1 + prm1) * (pem3 + prm3) * (pem4 + prm4)) - p_schE if t == 134
replace p_schR = ((pem2 + prm2) * (pem3 + prm3) * (pem4 + prm4)) - p_schE if t == 234
replace p_schR = ((pem1 + prm1) * (pem2 + prm2)) - p_schE if t == 12
replace p_schR = ((pem1 + prm1) * (pem3 + prm3)) - p_schE if t == 13
replace p_schR = ((pem1 + prm1) * (pem4 + prm4)) - p_schE if t == 14
replace p_schR = ((pem2 + prm2) * (pem3 + prm3)) - p_schE if t == 23
replace p_schR = ((pem2 + prm2) * (pem4 + prm4)) - p_schE if t == 24
replace p_schR = ((pem3 + prm3) * (pem4 + prm4)) - p_schE if t == 34
forvalues g = 1(1)4{
replace p_schR = prm`g' if t == `g'
}
* Acceptable schools
gen p_schA = ((pem1 + prm1 + pam1) * (pem2 + prm2 + pam2) * (pem3 + prm3 + pam3) * (pem4 + prm4 + pam4)) - (p_schE + p_schR) if t == 1234
replace p_schA = ((pem1 + prm1 + pam1) * (pem2 + prm2 + pam2) * (pem3 + prm3 + pam3)) - (p_schE + p_schR) if t == 123
replace p_schA = ((pem1 + prm1 + pam1) * (pem2 + prm2 + pam2) * (pem4 + prm4 + pam4)) - (p_schE + p_schR) if t == 124
replace p_schA = ((pem1 + prm1 + pam1) * (pem3 + prm3 + pam3) * (pem4 + prm4 + pam4)) - (p_schE + p_schR) if t == 134
replace p_schA = ((pem2 + prm2 + pam2) * (pem3 + prm3 + pam3) * (pem4 + prm4 + pam4)) - (p_schE + p_schR) if t == 234
replace p_schA = ((pem1 + prm1 + pam1) * (pem2 + prm2 + pam2)) - (p_schE + p_schR) if t == 12
replace p_schA = ((pem1 + prm1 + pam1) * (pem3 + prm3 + pam3)) - (p_schE + p_schR) if t == 13
replace p_schA = ((pem1 + prm1 + pam1) * (pem4 + prm4 + pam4)) - (p_schE + p_schR) if t == 14
replace p_schA = ((pem2 + prm2 + pam2) * (pem3 + prm3 + pam3)) - (p_schE + p_schR) if t == 23
replace p_schA = ((pem2 + prm2 + pam2) * (pem4 + prm4 + pam4)) - (p_schE + p_schR) if t == 24
replace p_schA = ((pem3 + prm3 + pam3) * (pem4 + prm4 + pam4)) - (p_schE + p_schR) if t == 34
forvalues g = 1(1)4{
replace p_schA = pam`g' if t == `g'
}

* LP schools
gen p_schLP = 1 - (p_schE + p_schR + p_schA)

foreach v in E R A LP {
	label var p_sch`v' "Probability of school `v' rating"
	}
	
egen tempmax = rowmax(p_schLP p_schA p_schR p_schE)
gen exp_rating=""
foreach r in E R A LP {
	replace exp_rating = "`r'" if tempmax==p_sch`r'
}


* This data is in subgroup wide format, with one obs per school-year
* Wide vars ending in 1=white, 2=black, 3=hisp, 4=FRPL

* Bring in official AEIS ratings
* This also includes the NonMathConstraintIn94 flag and a sample flag
drop if year_9>1999
rename campus9 campus
merge 1:1 campus rated_year using data/AEISRating_short.dta, keep(1 3)
drop if rated_year<1996 | rated_year>2002
tab rated_year _merge if sample!=0
* this excludes schools that are explicitly named alternative schools in AEIS
* e.g. Juvenile Justice centers, Rehab centers, teen pregnancy centers
drop if sample==0
rename _merge mrg_ERC_AEIS
rename campus campus9
drop if ratingAEIS=="N"
replace ratingAEIS_cons="LP" if ratingAEIS=="L"

* School-level descriptive statistics

tab exp_rating year_9

* Compare to AEIS rating
tab ratingAEIS_cons exp_rating
bys year_9: tab ratingAEIS_cons exp_rating
drop if year_9==.
save data/0718_13_sch_probs_long.dta, replace
drop plpm* pam* prm* pem* plpr* par* prr* per* plpw* paw* prw* pew* 
save data/0718_13_sch_probs.dta, replace

keep campus year_9  exp_rating p_sch* 
save data/0718_13_sch_probs_small.dta, replace
} // end part4 loop

*PART 4: School level with demo prediction
*DD 8/19 - I Have added RI to the fullpred model - these will be our new main results*
if "$part4_fullpred"=="1"{
use data/0718_2013_stud_probs_fullpred.dta, clear

* Collapse to get school subgroup predictions
preserve
collapse (mean) *scale* *raw* prob*  g9enroll (sem) se_prob_passm = prob_passm se_prob_passr = prob_passr se_prob_passw = prob_passw (count) N=male, by(campus year_9 race)
save data/0718_2013_temp_race_fullpred.dta, replace
restore
collapse (mean) *scale* *raw* prob*  g9enroll (sem) se_prob_passm = prob_passm se_prob_passr = prob_passr se_prob_passw = prob_passw  (count) N=male, by(campus year_9 frpl)
save data/0718_2013_temp_econ_fullpred.dta, replace
append using data/0718_2013_temp_race_fullpred.dta
gen group = race
replace group=4 if frpl==1
drop if frpl==0
drop race frpl
sort campus year group
order campus year group, first
foreach t in A R E {
	gen cutoff`t' = .
	}
gen rated_year=year_9+1	
/* fix this when you get ratings cutoffs for TAKS era */
replace cutoffE = .90 if rated_year>=1994 & rated_year<=2002
replace cutoffR = .65 if rated_year==1994 
replace cutoffR = .70 if rated_year==1995 
replace cutoffR = .70 if rated_year==1996 
replace cutoffR = .75 if rated_year==1997
replace cutoffR = .80 if rated_year>=1998 & rated_year<=2002
replace cutoffA = .25 if rated_year==1994
replace cutoffA = .25 if rated_year==1995 
replace cutoffA = .30 if rated_year==1996 
replace cutoffA = .35 if rated_year==1997 
replace cutoffA = .40 if rated_year==1998
replace cutoffA = .45 if rated_year==1999 
replace cutoffA = .50 if rated_year==2000 
replace cutoffA = .50 if rated_year==2001 
replace cutoffA = .55 if rated_year==2002

*REQUIRED IMPROVEMENT
*generate growth
egen id=group(campus9 group)
tsset id year_9

*Can't be RI if last year's pass rate is above this year's target*
gen RI_inelig=L.g10mscale_pass>=cutoffA
replace RI_inelig=1 if L.N<30
replace RI_inelig=1 if N<30
gen RI=( cutoffA-L.g10mscale_pass)/4
replace RI=. if RI_inelig==1
gen cutoff_RI=L.g10mscale_pass+RI
replace cutoff_RI=. if L.cutoff_RI!=.
gen temp=cutoffA-cutoff_RI
replace cutoff_RI=cutoffA-0.1 if temp>=0.1 & temp!=.
replace cutoffA=cutoff_RI if cutoff_RI!=.

drop id temp RI_inelig RI cutoff_RI g10*scale_pass

save data/0718_13_subgroup_interim_fullpred, replace

* now paste a few columns into Excel to quickly integrate
*SRC 8.15.2013 NOW IN STATA!
keep campus year group prob_pass* se_prob_pass*  cutoff*
foreach s in m r w{
g plp`s'=normal((cutoffA-prob_pass`s')/ se_prob_pass`s')
g pa`s'=normal((cutoffR-prob_pass`s')/ se_prob_pass`s')-plp`s'
g pr`s'=normal((cutoffE-prob_pass`s')/ se_prob_pass`s')-(plp`s' +pa`s')
g pe`s'=normal((1-prob_pass`s')/ se_prob_pass`s')-(plp`s' +pa`s' +pr`s')
}

save data/0718_13_computed_integrals_fullpred.dta, replace
use data/0718_13_computed_integrals_fullpred.dta, clear

merge 1:1 campus year group using data/0718_13_subgroup_interim_fullpred
drop cutoff* _merge 

* some groups are too small to get means or SEs
*SRC 4.4.2013 switch to 30 kids
count
*40189
drop if N<30
count
*15840
*SRC drop if subgroup less than 10%
g percent = N/g9enrollment
drop if percent<.1
drop percent 
count
*15047

set more off
reshape wide prob_passm - N, i(campus9 year_9) j(group)

* Calculate conditional probabilities that each subgroup is the bottleneck in its school in each year
* Pr that only one group is the bottleneck: 1 or 2 or 3 or 4

* if the group is missing for that school, then its probability of being the bottleneck is zero
* this might be a problem with the BNgroups code later on
foreach s in m r w {
	foreach r in lp a r e {
	forvalues g = 1(1)4{
		replace p`r'`s'`g' = 0 if p`r'`s'`g'==.
		}
	}	
}	

foreach s in m /* r w */ {
local a = 1
local b = 2
local c = 3
local d = 4
gen pbn_`a'`s' = plp`s'`a' * (1-plp`s'`b') * (1-plp`s'`c') * (1-plp`s'`d') ///
	+ pa`s'`a' * (1-(plp`s'`b' + pa`s'`b')) * (1-(plp`s'`c' + pa`s'`c')) * (1-(plp`s'`d' + pa`s'`d')) ///
	+ pr`s'`a' * (1-(plp`s'`b' + pa`s'`b' + pr`s'`b')) * (1-(plp`s'`c' + pa`s'`c' + pr`s'`c')) * (1-(plp`s'`d' + pa`s'`d' + pr`s'`d')) ///
	+ pe`s'`a' * (1-(plp`s'`b' + pa`s'`b' + pr`s'`b' + pe`s'`b')) * (1-(plp`s'`c' + pa`s'`c' + pr`s'`c' + pe`s'`c')) * (1-(plp`s'`d' + pa`s'`d' + pr`s'`d' + pe`s'`d')) 
	
local a = 2
local b = 1
local c = 3
local d = 4
gen pbn_`a'`s' = plp`s'`a' * (1-plp`s'`b') * (1-plp`s'`c') * (1-plp`s'`d') ///
	+ pa`s'`a' * (1-(plp`s'`b' + pa`s'`b')) * (1-(plp`s'`c' + pa`s'`c')) * (1-(plp`s'`d' + pa`s'`d')) ///
	+ pr`s'`a' * (1-(plp`s'`b' + pa`s'`b' + pr`s'`b')) * (1-(plp`s'`c' + pa`s'`c' + pr`s'`c')) * (1-(plp`s'`d' + pa`s'`d' + pr`s'`d')) ///
	+ pe`s'`a' * (1-(plp`s'`b' + pa`s'`b' + pr`s'`b' + pe`s'`b')) * (1-(plp`s'`c' + pa`s'`c' + pr`s'`c' + pe`s'`c')) * (1-(plp`s'`d' + pa`s'`d' + pr`s'`d' + pe`s'`d')) 
	
local a = 3
local b = 1
local c = 2
local d = 4
gen pbn_`a'`s' = plp`s'`a' * (1-plp`s'`b') * (1-plp`s'`c') * (1-plp`s'`d') ///
	+ pa`s'`a' * (1-(plp`s'`b' + pa`s'`b')) * (1-(plp`s'`c' + pa`s'`c')) * (1-(plp`s'`d' + pa`s'`d')) ///
	+ pr`s'`a' * (1-(plp`s'`b' + pa`s'`b' + pr`s'`b')) * (1-(plp`s'`c' + pa`s'`c' + pr`s'`c')) * (1-(plp`s'`d' + pa`s'`d' + pr`s'`d')) ///
	+ pe`s'`a' * (1-(plp`s'`b' + pa`s'`b' + pr`s'`b' + pe`s'`b')) * (1-(plp`s'`c' + pa`s'`c' + pr`s'`c' + pe`s'`c')) * (1-(plp`s'`d' + pa`s'`d' + pr`s'`d' + pe`s'`d')) 
		
local a = 4
local b = 1
local c = 2
local d = 3
gen pbn_`a'`s' = plp`s'`a' * (1-plp`s'`b') * (1-plp`s'`c') * (1-plp`s'`d') ///
	+ pa`s'`a' * (1-(plp`s'`b' + pa`s'`b')) * (1-(plp`s'`c' + pa`s'`c')) * (1-(plp`s'`d' + pa`s'`d')) ///
	+ pr`s'`a' * (1-(plp`s'`b' + pa`s'`b' + pr`s'`b')) * (1-(plp`s'`c' + pa`s'`c' + pr`s'`c')) * (1-(plp`s'`d' + pa`s'`d' + pr`s'`d')) ///
	+ pe`s'`a' * (1-(plp`s'`b' + pa`s'`b' + pr`s'`b' + pe`s'`b')) * (1-(plp`s'`c' + pa`s'`c' + pr`s'`c' + pe`s'`c')) * (1-(plp`s'`d' + pa`s'`d' + pr`s'`d' + pe`s'`d')) 
	
* Pr that two groups are the bottleneck: ab + ac + ad + bc + bd + cd
local a = 1
local b = 2
local c = 3
local d = 4
gen pbn_`a'`b'`s' = (plp`s'`a' * plp`s'`b') * (1-plp`s'`c') * (1-plp`s'`d') ///
	+ (pa`s'`a' * pa`s'`b') * (1-(plp`s'`c' + pa`s'`c')) * (1-(plp`s'`d' + pa`s'`d')) ///
	+ (pr`s'`a' * pr`s'`b') * (1-(plp`s'`c' + pa`s'`c' + pr`s'`c')) * (1-(plp`s'`d' + pa`s'`d' + pr`s'`d')) ///
	+ (pe`s'`a' * pe`s'`b') * (1-(plp`s'`c' + pa`s'`c' + pr`s'`c' + pe`s'`c')) * (1-(plp`s'`d' + pa`s'`d' + pr`s'`d' + pe`s'`d')) 
	
local a = 1
local b = 3
local c = 2
local d = 4
gen pbn_`a'`b'`s' = (plp`s'`a' * plp`s'`b') * (1-plp`s'`c') * (1-plp`s'`d') ///
	+ (pa`s'`a' * pa`s'`b') * (1-(plp`s'`c' + pa`s'`c')) * (1-(plp`s'`d' + pa`s'`d')) ///
	+ (pr`s'`a' * pr`s'`b') * (1-(plp`s'`c' + pa`s'`c' + pr`s'`c')) * (1-(plp`s'`d' + pa`s'`d' + pr`s'`d')) ///
	+ (pe`s'`a' * pe`s'`b') * (1-(plp`s'`c' + pa`s'`c' + pr`s'`c' + pe`s'`c')) * (1-(plp`s'`d' + pa`s'`d' + pr`s'`d' + pe`s'`d')) 
	
local a = 1
local b = 4
local c = 2
local d = 3
gen pbn_`a'`b'`s' = (plp`s'`a' * plp`s'`b') * (1-plp`s'`c') * (1-plp`s'`d') ///
	+ (pa`s'`a' * pa`s'`b') * (1-(plp`s'`c' + pa`s'`c')) * (1-(plp`s'`d' + pa`s'`d')) ///
	+ (pr`s'`a' * pr`s'`b') * (1-(plp`s'`c' + pa`s'`c' + pr`s'`c')) * (1-(plp`s'`d' + pa`s'`d' + pr`s'`d')) ///
	+ (pe`s'`a' * pe`s'`b') * (1-(plp`s'`c' + pa`s'`c' + pr`s'`c' + pe`s'`c')) * (1-(plp`s'`d' + pa`s'`d' + pr`s'`d' + pe`s'`d')) 

local a = 2
local b = 3
local c = 1
local d = 4
gen pbn_`a'`b'`s' = (plp`s'`a' * plp`s'`b') * (1-plp`s'`c') * (1-plp`s'`d') ///
	+ (pa`s'`a' * pa`s'`b') * (1-(plp`s'`c' + pa`s'`c')) * (1-(plp`s'`d' + pa`s'`d')) ///
	+ (pr`s'`a' * pr`s'`b') * (1-(plp`s'`c' + pa`s'`c' + pr`s'`c')) * (1-(plp`s'`d' + pa`s'`d' + pr`s'`d')) ///
	+ (pe`s'`a' * pe`s'`b') * (1-(plp`s'`c' + pa`s'`c' + pr`s'`c' + pe`s'`c')) * (1-(plp`s'`d' + pa`s'`d' + pr`s'`d' + pe`s'`d')) 	

local a = 2
local b = 4
local c = 1
local d = 3
gen pbn_`a'`b'`s' = (plp`s'`a' * plp`s'`b') * (1-plp`s'`c') * (1-plp`s'`d') ///
	+ (pa`s'`a' * pa`s'`b') * (1-(plp`s'`c' + pa`s'`c')) * (1-(plp`s'`d' + pa`s'`d')) ///
	+ (pr`s'`a' * pr`s'`b') * (1-(plp`s'`c' + pa`s'`c' + pr`s'`c')) * (1-(plp`s'`d' + pa`s'`d' + pr`s'`d')) ///
	+ (pe`s'`a' * pe`s'`b') * (1-(plp`s'`c' + pa`s'`c' + pr`s'`c' + pe`s'`c')) * (1-(plp`s'`d' + pa`s'`d' + pr`s'`d' + pe`s'`d')) 
	
local a = 3
local b = 4
local c = 1
local d = 2
gen pbn_`a'`b'`s' = (plp`s'`a' * plp`s'`b') * (1-plp`s'`c') * (1-plp`s'`d') ///
	+ (pa`s'`a' * pa`s'`b') * (1-(plp`s'`c' + pa`s'`c')) * (1-(plp`s'`d' + pa`s'`d')) ///
	+ (pr`s'`a' * pr`s'`b') * (1-(plp`s'`c' + pa`s'`c' + pr`s'`c')) * (1-(plp`s'`d' + pa`s'`d' + pr`s'`d')) ///
	+ (pe`s'`a' * pe`s'`b') * (1-(plp`s'`c' + pa`s'`c' + pr`s'`c' + pe`s'`c')) * (1-(plp`s'`d' + pa`s'`d' + pr`s'`d' + pe`s'`d')) 		
	
* 3-combos: 123 124 234 134 
local a = 1
local b = 2
local c = 3
local d = 4
gen pbn_`a'`b'`c'`s' = (plp`s'`a' * plp`s'`b' * plp`s'`c') * (1-plp`s'`d') ///
	+ (pa`s'`a' * pa`s'`b' * pa`s'`c') * (1-(plp`s'`d' + pa`s'`d')) ///
	+ (pr`s'`a' * pr`s'`b' * pr`s'`c') * (1-(plp`s'`d' + pa`s'`d' + pr`s'`d')) ///
	+ (pe`s'`a' * pe`s'`b' * pe`s'`c') * (1-(plp`s'`d' + pa`s'`d' + pr`s'`d' + pe`s'`d')) 
	
local a = 1
local b = 2
local c = 4
local d = 3
gen pbn_`a'`b'`c'`s' = (plp`s'`a' * plp`s'`b' * plp`s'`c') * (1-plp`s'`d') ///
	+ (pa`s'`a' * pa`s'`b' * pa`s'`c') * (1-(plp`s'`d' + pa`s'`d')) ///
	+ (pr`s'`a' * pr`s'`b' * pr`s'`c') * (1-(plp`s'`d' + pa`s'`d' + pr`s'`d')) ///
	+ (pe`s'`a' * pe`s'`b' * pe`s'`c') * (1-(plp`s'`d' + pa`s'`d' + pr`s'`d' + pe`s'`d')) 
	
local a = 2
local b = 3
local c = 4
local d = 1
gen pbn_`a'`b'`c'`s' = (plp`s'`a' * plp`s'`b' * plp`s'`c') * (1-plp`s'`d') ///
	+ (pa`s'`a' * pa`s'`b' * pa`s'`c') * (1-(plp`s'`d' + pa`s'`d')) ///
	+ (pr`s'`a' * pr`s'`b' * pr`s'`c') * (1-(plp`s'`d' + pa`s'`d' + pr`s'`d')) ///
	+ (pe`s'`a' * pe`s'`b' * pe`s'`c') * (1-(plp`s'`d' + pa`s'`d' + pr`s'`d' + pe`s'`d')) 
	
local a = 1
local b = 3
local c = 4
local d = 2
gen pbn_`a'`b'`c'`s' = (plp`s'`a' * plp`s'`b' * plp`s'`c') * (1-plp`s'`d') ///
	+ (pa`s'`a' * pa`s'`b' * pa`s'`c') * (1-(plp`s'`d' + pa`s'`d')) ///
	+ (pr`s'`a' * pr`s'`b' * pr`s'`c') * (1-(plp`s'`d' + pa`s'`d' + pr`s'`d')) ///
	+ (pe`s'`a' * pe`s'`b' * pe`s'`c') * (1-(plp`s'`d' + pa`s'`d' + pr`s'`d' + pe`s'`d')) 

* Pr all four are equal
local a = 1
local b = 2
local c = 3
local d = 4
gen pbn_`a'`b'`c'`d'`s' = (plp`s'`a' * plp`s'`b' * plp`s'`c' * plp`s'`d') ///
	+ (pa`s'`a' * pa`s'`b' * pa`s'`c' * pa`s'`d')  ///
	+ (pr`s'`a' * pr`s'`b' * pr`s'`c' * pr`s'`d') ///
	+ (pe`s'`a' * pe`s'`b' * pe`s'`c' * pe`s'`d')
}	

* If only one group in the school, it must be the bottleneck
replace pbn_1m = 1 if N1!=. & N2==. & N3==. & N4==.
replace pbn_2m = 1 if N2!=. & N1==. & N3==. & N4==.
replace pbn_3m = 1 if N3!=. & N1==. & N2==. & N4==.
replace pbn_4m = 1 if N4!=. & N1==. & N2==. & N3==.

* check that the total bottleneck probabilities sum up to 1 within subject
foreach s in m /*r w*/ {
	egen temp`s' = rowtotal(pbn_*`s')
	}
* lots are zero -- look into this -- caused by missing subgroups I think
sum tempm if tempm!=0
drop temp*

* renorm pbn* by dividing by (1-pbn_1234m)
foreach v in pbn_1m pbn_2m pbn_3m pbn_4m pbn_12m pbn_13m pbn_14m pbn_23m pbn_24m pbn_34m pbn_123m pbn_124m pbn_234m pbn_134m {
	gen n`v' = `v'/(1-pbn_1234m)
	}
egen max_pbn = rowmax(npbn*)
gen BNgroups=.
foreach n in 1 2 3 4 12 13 14 23 24 34 123 124 234 134 {
	replace BNgroups = `n' if max_pbn==npbn_`n'm
	}
gen BNgroup1 = 1 if BNgroups == 1 | BNgroups == 12 | BNgroups == 13 |  BNgroups == 14 | BNgroups == 123 | BNgroups == 124 | BNgroups == 134
replace BNgroup1 = 2 if BNgroups == 2 | BNgroups == 23 | BNgroups == 24 |  BNgroups == 234
replace BNgroup1 = 3 if BNgroups == 3 | BNgroups == 34
replace BNgroup1 = 4 if BNgroups == 4 
gen BNgroup2 = 2 if BNgroups == 12 | BNgroups == 123 |  BNgroups == 124
replace BNgroup2 = 3 if BNgroups == 13 | BNgroups==23 | BNgroups == 234 |  BNgroups == 134
replace BNgroup2 = 4 if BNgroups == 14 | BNgroups == 24 |  BNgroups == 34
gen BNgroup3 = 3 if BNgroups == 123 
replace BNgroup3 = 4 if BNgroups == 234 | BNgroups == 134

* pbn_m* gives the probabilitiy that the enumerated groups have the lowest rating. it doesn't tell us what that rating is.
* below we derive the probability that a school ends up in one of the four ratings
* kind of clunky because probabilities depend on which groups are missing
gen t = 1 if N1!=. & N2==. & N3==. & N4==.
replace t = 2 if N2!=. & N1==. & N3==. & N4==.
replace t = 3 if N3!=. & N1==. & N2==. & N4==.
replace t = 4 if N4!=. & N1==. & N2==. & N3==.

replace t = 12 if N1!=. & N2!=. & N3==. & N4==.
replace t = 13 if N1!=. & N2==. & N3!=. & N4==.
replace t = 14 if N1!=. & N2==. & N3==. & N4!=.

replace t = 23 if N1==. & N2!=. & N3!=. & N4==.
replace t = 24 if N1==. & N2!=. & N3==. & N4!=.
replace t = 34 if N1==. & N2==. & N3!=. & N4!=.

replace t = 123 if N1!=. & N2!=. & N3!=. & N4==.
replace t = 124 if N1!=. & N2!=. & N3==. & N4!=.
replace t = 134 if N1!=. & N2==. & N3!=. & N4!=.
replace t = 234 if N1==. & N2!=. & N3!=. & N4!=.

replace t = 1234 if N1!=. & N2!=. & N3!=. & N4!=.

* Exemplary schools
gen p_schE = pem1 * pem2 * pem3 * pem4 if t == 1234
replace p_schE = pem1 * pem2 * pem3 if t == 123
replace p_schE = pem1 * pem2 * pem4 if t == 124
replace p_schE = pem1 * pem3 * pem4 if t == 134
replace p_schE = pem2 * pem3 * pem4 if t == 234
replace p_schE = pem1 * pem2 if t == 12
replace p_schE = pem1 * pem3 if t == 13
replace p_schE = pem1 * pem4 if t == 14
replace p_schE = pem2 * pem3 if t == 23
replace p_schE = pem2 * pem4 if t == 24
replace p_schE = pem3 * pem4 if t == 34
forvalues g = 1(1)4{
replace p_schE = pem`g' if t == `g'
}
* Recognized schools
gen p_schR = ((pem1 + prm1) * (pem2 + prm2) * (pem3 + prm3) * (pem4 + prm4)) - p_schE if t == 1234
replace p_schR = ((pem1 + prm1) * (pem2 + prm2) * (pem3 + prm3)) - p_schE if t == 123
replace p_schR = ((pem1 + prm1) * (pem2 + prm2) * (pem4 + prm4)) - p_schE if t == 124
replace p_schR = ((pem1 + prm1) * (pem3 + prm3) * (pem4 + prm4)) - p_schE if t == 134
replace p_schR = ((pem2 + prm2) * (pem3 + prm3) * (pem4 + prm4)) - p_schE if t == 234
replace p_schR = ((pem1 + prm1) * (pem2 + prm2)) - p_schE if t == 12
replace p_schR = ((pem1 + prm1) * (pem3 + prm3)) - p_schE if t == 13
replace p_schR = ((pem1 + prm1) * (pem4 + prm4)) - p_schE if t == 14
replace p_schR = ((pem2 + prm2) * (pem3 + prm3)) - p_schE if t == 23
replace p_schR = ((pem2 + prm2) * (pem4 + prm4)) - p_schE if t == 24
replace p_schR = ((pem3 + prm3) * (pem4 + prm4)) - p_schE if t == 34
forvalues g = 1(1)4{
replace p_schR = prm`g' if t == `g'
}
* Acceptable schools
gen p_schA = ((pem1 + prm1 + pam1) * (pem2 + prm2 + pam2) * (pem3 + prm3 + pam3) * (pem4 + prm4 + pam4)) - (p_schE + p_schR) if t == 1234
replace p_schA = ((pem1 + prm1 + pam1) * (pem2 + prm2 + pam2) * (pem3 + prm3 + pam3)) - (p_schE + p_schR) if t == 123
replace p_schA = ((pem1 + prm1 + pam1) * (pem2 + prm2 + pam2) * (pem4 + prm4 + pam4)) - (p_schE + p_schR) if t == 124
replace p_schA = ((pem1 + prm1 + pam1) * (pem3 + prm3 + pam3) * (pem4 + prm4 + pam4)) - (p_schE + p_schR) if t == 134
replace p_schA = ((pem2 + prm2 + pam2) * (pem3 + prm3 + pam3) * (pem4 + prm4 + pam4)) - (p_schE + p_schR) if t == 234
replace p_schA = ((pem1 + prm1 + pam1) * (pem2 + prm2 + pam2)) - (p_schE + p_schR) if t == 12
replace p_schA = ((pem1 + prm1 + pam1) * (pem3 + prm3 + pam3)) - (p_schE + p_schR) if t == 13
replace p_schA = ((pem1 + prm1 + pam1) * (pem4 + prm4 + pam4)) - (p_schE + p_schR) if t == 14
replace p_schA = ((pem2 + prm2 + pam2) * (pem3 + prm3 + pam3)) - (p_schE + p_schR) if t == 23
replace p_schA = ((pem2 + prm2 + pam2) * (pem4 + prm4 + pam4)) - (p_schE + p_schR) if t == 24
replace p_schA = ((pem3 + prm3 + pam3) * (pem4 + prm4 + pam4)) - (p_schE + p_schR) if t == 34
forvalues g = 1(1)4{
replace p_schA = pam`g' if t == `g'
}

* LP schools
gen p_schLP = 1 - (p_schE + p_schR + p_schA)

foreach v in E R A LP {
	label var p_sch`v' "Probability of school `v' rating"
	}
	
egen tempmax = rowmax(p_schLP p_schA p_schR p_schE)
gen exp_rating=""
foreach r in E R A LP {
	replace exp_rating = "`r'" if tempmax==p_sch`r'
}


* This data is in subgroup wide format, with one obs per school-year
* Wide vars ending in 1=white, 2=black, 3=hisp, 4=FRPL

* Bring in official AEIS ratings
* This also includes the NonMathConstraintIn94 flag and a sample flag
drop if year_9>1999
rename campus9 campus

*merge 1:1 campus rated_year using "O:\projects\LTSO\Maya\Paper2\0207_AEISRating_short.dta, keep(1 3)
merge 1:1 campus rated_year using data/AEISRating_short.dta, keep(1 3)
drop if rated_year<1996 | rated_year>2002
tab rated_year _merge if sample!=0
* this excludes schools that are explicitly named alternative schools in AEIS
* e.g. Juvenile Justice centers, Rehab centers, teen pregnancy centers
drop if sample==0
rename _merge mrg_ERC_AEIS
rename campus campus9
drop if ratingAEIS=="N"
replace ratingAEIS_cons="LP" if ratingAEIS=="L"

* School-level descriptive statistics

* Compare to AEIS rating
tab ratingAEIS_cons exp_rating
bys year_9: tab ratingAEIS_cons exp_rating
drop if year_9==.
save data/0718_13_sch_probs_long_fullpred.dta, replace
drop plpm* pam* prm* pem* plpr* par* prr* per* plpw* paw* prw* pew* 
save data/0718_13_sch_probs_fullpred.dta, replace

keep campus year_9  exp_rating p_sch* 
save data/0718_13_sch_probs_small_fullpred.dta, replace
} // end part4 loop


* PART 4: AVG ACROSS COHORTS Prepare data for school-level analysis
if "$part4_avg"=="1"{
use data/0718_2013_temp_race.dta, clear
collapse (mean) g10* g8* prob_* g9enrollment se_* N, by(campus9 race)
save data/0718_2013_temp_race_DD.dta, replace
use data/0718_2013_temp_econ.dta, clear
collapse (mean) g10* g8* prob_* g9enrollment se_* N, by(campus9 frpl)
save data/0718_2013_temp_econ_DD.dta, replace

forvalues y=1995(1)1999 {
	use data/0718_2013_temp_race_DD.dta, clear
	append using data/0718_2013_temp_econ_DD.dta
	gen year_9=`y'
	save data/0718_2013_temp_DD`y'.dta, replace
}
use data/0718_2013_temp_DD1995.dta, clear
forvalues y=1996(1)1999 {
	append using data/0718_2013_temp_DD`y'.dta
}
gen group = race
replace group=4 if frpl==1
drop if frpl==0
drop race frpl
sort campus year_9 group
order campus year_9 group, first

foreach t in A R E {
	gen cutoff`t' = .
	}
gen rated_year=year_9+1	
/* fix this when you get ratings cutoffs for TAKS era */
replace cutoffE = .90 if rated_year>=1994 & rated_year<=2002
replace cutoffR = .65 if rated_year==1994 
replace cutoffR = .70 if rated_year==1995 
replace cutoffR = .70 if rated_year==1996 
replace cutoffR = .75 if rated_year==1997
replace cutoffR = .80 if rated_year>=1998 & rated_year<=2002
replace cutoffA = .25 if rated_year==1994
replace cutoffA = .25 if rated_year==1995 
replace cutoffA = .30 if rated_year==1996 
replace cutoffA = .35 if rated_year==1997 
replace cutoffA = .40 if rated_year==1998
replace cutoffA = .45 if rated_year==1999 
replace cutoffA = .50 if rated_year==2000 
replace cutoffA = .50 if rated_year==2001 
replace cutoffA = .55 if rated_year==2002 

save data/0718_13_subgroup_interim_DD, replace

* now paste a few columns into Excel to quickly integrate
*SRC 8.15.2013 NOW IN STATA!
keep campus year group prob_pass* se_prob_pass*  cutoff*
foreach s in m r w{
g plp`s'=normal((cutoffA-prob_pass`s')/ se_prob_pass`s')
g pa`s'=normal((cutoffR-prob_pass`s')/ se_prob_pass`s')-plp`s'
g pr`s'=normal((cutoffE-prob_pass`s')/ se_prob_pass`s')-(plp`s' +pa`s')
g pe`s'=normal((1-prob_pass`s')/ se_prob_pass`s')-(plp`s' +pa`s' +pr`s')
}

save data/0718_13_computed_integrals_DD.dta, replace

merge 1:1 campus year group using data/0718_13_subgroup_interim
drop cutoff* _m

* some groups are too small to get means or SEs
*SRC 4.4.2013 switch to 30 kids
count
*40189
drop if N<30
count
*15840
*SRC drop if subgroup less than 10%
g percent = N/g9enrollment
drop if percent<.1
drop percent 
count
*15047

set more off
drop rated_year
gen rated_year=year_9+1	
reshape wide prob_passm - N, i(campus9 year_9) j(group)

* Calculate conditional probabilities that each subgroup is the bottleneck in its school in each year
* Pr that only one group is the bottleneck: 1 or 2 or 3 or 4

* if the group is missing for that school, then its probability of being the bottleneck is zero
* this might be a problem with the BNgroups code later on
foreach s in m r w {
	foreach r in lp a r e {
	forvalues g = 1(1)4{
		replace p`r'`s'`g' = 0 if p`r'`s'`g'==.
		}
	}	
}	

foreach s in m /* r w */ {
local a = 1
local b = 2
local c = 3
local d = 4
gen pbn_`a'`s' = plp`s'`a' * (1-plp`s'`b') * (1-plp`s'`c') * (1-plp`s'`d') ///
	+ pa`s'`a' * (1-(plp`s'`b' + pa`s'`b')) * (1-(plp`s'`c' + pa`s'`c')) * (1-(plp`s'`d' + pa`s'`d')) ///
	+ pr`s'`a' * (1-(plp`s'`b' + pa`s'`b' + pr`s'`b')) * (1-(plp`s'`c' + pa`s'`c' + pr`s'`c')) * (1-(plp`s'`d' + pa`s'`d' + pr`s'`d')) ///
	+ pe`s'`a' * (1-(plp`s'`b' + pa`s'`b' + pr`s'`b' + pe`s'`b')) * (1-(plp`s'`c' + pa`s'`c' + pr`s'`c' + pe`s'`c')) * (1-(plp`s'`d' + pa`s'`d' + pr`s'`d' + pe`s'`d')) 
	
local a = 2
local b = 1
local c = 3
local d = 4
gen pbn_`a'`s' = plp`s'`a' * (1-plp`s'`b') * (1-plp`s'`c') * (1-plp`s'`d') ///
	+ pa`s'`a' * (1-(plp`s'`b' + pa`s'`b')) * (1-(plp`s'`c' + pa`s'`c')) * (1-(plp`s'`d' + pa`s'`d')) ///
	+ pr`s'`a' * (1-(plp`s'`b' + pa`s'`b' + pr`s'`b')) * (1-(plp`s'`c' + pa`s'`c' + pr`s'`c')) * (1-(plp`s'`d' + pa`s'`d' + pr`s'`d')) ///
	+ pe`s'`a' * (1-(plp`s'`b' + pa`s'`b' + pr`s'`b' + pe`s'`b')) * (1-(plp`s'`c' + pa`s'`c' + pr`s'`c' + pe`s'`c')) * (1-(plp`s'`d' + pa`s'`d' + pr`s'`d' + pe`s'`d')) 
	
local a = 3
local b = 1
local c = 2
local d = 4
gen pbn_`a'`s' = plp`s'`a' * (1-plp`s'`b') * (1-plp`s'`c') * (1-plp`s'`d') ///
	+ pa`s'`a' * (1-(plp`s'`b' + pa`s'`b')) * (1-(plp`s'`c' + pa`s'`c')) * (1-(plp`s'`d' + pa`s'`d')) ///
	+ pr`s'`a' * (1-(plp`s'`b' + pa`s'`b' + pr`s'`b')) * (1-(plp`s'`c' + pa`s'`c' + pr`s'`c')) * (1-(plp`s'`d' + pa`s'`d' + pr`s'`d')) ///
	+ pe`s'`a' * (1-(plp`s'`b' + pa`s'`b' + pr`s'`b' + pe`s'`b')) * (1-(plp`s'`c' + pa`s'`c' + pr`s'`c' + pe`s'`c')) * (1-(plp`s'`d' + pa`s'`d' + pr`s'`d' + pe`s'`d')) 
		
local a = 4
local b = 1
local c = 2
local d = 3
gen pbn_`a'`s' = plp`s'`a' * (1-plp`s'`b') * (1-plp`s'`c') * (1-plp`s'`d') ///
	+ pa`s'`a' * (1-(plp`s'`b' + pa`s'`b')) * (1-(plp`s'`c' + pa`s'`c')) * (1-(plp`s'`d' + pa`s'`d')) ///
	+ pr`s'`a' * (1-(plp`s'`b' + pa`s'`b' + pr`s'`b')) * (1-(plp`s'`c' + pa`s'`c' + pr`s'`c')) * (1-(plp`s'`d' + pa`s'`d' + pr`s'`d')) ///
	+ pe`s'`a' * (1-(plp`s'`b' + pa`s'`b' + pr`s'`b' + pe`s'`b')) * (1-(plp`s'`c' + pa`s'`c' + pr`s'`c' + pe`s'`c')) * (1-(plp`s'`d' + pa`s'`d' + pr`s'`d' + pe`s'`d')) 
	
* Pr that two groups are the bottleneck: ab + ac + ad + bc + bd + cd
local a = 1
local b = 2
local c = 3
local d = 4
gen pbn_`a'`b'`s' = (plp`s'`a' * plp`s'`b') * (1-plp`s'`c') * (1-plp`s'`d') ///
	+ (pa`s'`a' * pa`s'`b') * (1-(plp`s'`c' + pa`s'`c')) * (1-(plp`s'`d' + pa`s'`d')) ///
	+ (pr`s'`a' * pr`s'`b') * (1-(plp`s'`c' + pa`s'`c' + pr`s'`c')) * (1-(plp`s'`d' + pa`s'`d' + pr`s'`d')) ///
	+ (pe`s'`a' * pe`s'`b') * (1-(plp`s'`c' + pa`s'`c' + pr`s'`c' + pe`s'`c')) * (1-(plp`s'`d' + pa`s'`d' + pr`s'`d' + pe`s'`d')) 
	
local a = 1
local b = 3
local c = 2
local d = 4
gen pbn_`a'`b'`s' = (plp`s'`a' * plp`s'`b') * (1-plp`s'`c') * (1-plp`s'`d') ///
	+ (pa`s'`a' * pa`s'`b') * (1-(plp`s'`c' + pa`s'`c')) * (1-(plp`s'`d' + pa`s'`d')) ///
	+ (pr`s'`a' * pr`s'`b') * (1-(plp`s'`c' + pa`s'`c' + pr`s'`c')) * (1-(plp`s'`d' + pa`s'`d' + pr`s'`d')) ///
	+ (pe`s'`a' * pe`s'`b') * (1-(plp`s'`c' + pa`s'`c' + pr`s'`c' + pe`s'`c')) * (1-(plp`s'`d' + pa`s'`d' + pr`s'`d' + pe`s'`d')) 
	
local a = 1
local b = 4
local c = 2
local d = 3
gen pbn_`a'`b'`s' = (plp`s'`a' * plp`s'`b') * (1-plp`s'`c') * (1-plp`s'`d') ///
	+ (pa`s'`a' * pa`s'`b') * (1-(plp`s'`c' + pa`s'`c')) * (1-(plp`s'`d' + pa`s'`d')) ///
	+ (pr`s'`a' * pr`s'`b') * (1-(plp`s'`c' + pa`s'`c' + pr`s'`c')) * (1-(plp`s'`d' + pa`s'`d' + pr`s'`d')) ///
	+ (pe`s'`a' * pe`s'`b') * (1-(plp`s'`c' + pa`s'`c' + pr`s'`c' + pe`s'`c')) * (1-(plp`s'`d' + pa`s'`d' + pr`s'`d' + pe`s'`d')) 

local a = 2
local b = 3
local c = 1
local d = 4
gen pbn_`a'`b'`s' = (plp`s'`a' * plp`s'`b') * (1-plp`s'`c') * (1-plp`s'`d') ///
	+ (pa`s'`a' * pa`s'`b') * (1-(plp`s'`c' + pa`s'`c')) * (1-(plp`s'`d' + pa`s'`d')) ///
	+ (pr`s'`a' * pr`s'`b') * (1-(plp`s'`c' + pa`s'`c' + pr`s'`c')) * (1-(plp`s'`d' + pa`s'`d' + pr`s'`d')) ///
	+ (pe`s'`a' * pe`s'`b') * (1-(plp`s'`c' + pa`s'`c' + pr`s'`c' + pe`s'`c')) * (1-(plp`s'`d' + pa`s'`d' + pr`s'`d' + pe`s'`d')) 	

local a = 2
local b = 4
local c = 1
local d = 3
gen pbn_`a'`b'`s' = (plp`s'`a' * plp`s'`b') * (1-plp`s'`c') * (1-plp`s'`d') ///
	+ (pa`s'`a' * pa`s'`b') * (1-(plp`s'`c' + pa`s'`c')) * (1-(plp`s'`d' + pa`s'`d')) ///
	+ (pr`s'`a' * pr`s'`b') * (1-(plp`s'`c' + pa`s'`c' + pr`s'`c')) * (1-(plp`s'`d' + pa`s'`d' + pr`s'`d')) ///
	+ (pe`s'`a' * pe`s'`b') * (1-(plp`s'`c' + pa`s'`c' + pr`s'`c' + pe`s'`c')) * (1-(plp`s'`d' + pa`s'`d' + pr`s'`d' + pe`s'`d')) 
	
local a = 3
local b = 4
local c = 1
local d = 2
gen pbn_`a'`b'`s' = (plp`s'`a' * plp`s'`b') * (1-plp`s'`c') * (1-plp`s'`d') ///
	+ (pa`s'`a' * pa`s'`b') * (1-(plp`s'`c' + pa`s'`c')) * (1-(plp`s'`d' + pa`s'`d')) ///
	+ (pr`s'`a' * pr`s'`b') * (1-(plp`s'`c' + pa`s'`c' + pr`s'`c')) * (1-(plp`s'`d' + pa`s'`d' + pr`s'`d')) ///
	+ (pe`s'`a' * pe`s'`b') * (1-(plp`s'`c' + pa`s'`c' + pr`s'`c' + pe`s'`c')) * (1-(plp`s'`d' + pa`s'`d' + pr`s'`d' + pe`s'`d')) 		
	
* 3-combos: 123 124 234 134 
local a = 1
local b = 2
local c = 3
local d = 4
gen pbn_`a'`b'`c'`s' = (plp`s'`a' * plp`s'`b' * plp`s'`c') * (1-plp`s'`d') ///
	+ (pa`s'`a' * pa`s'`b' * pa`s'`c') * (1-(plp`s'`d' + pa`s'`d')) ///
	+ (pr`s'`a' * pr`s'`b' * pr`s'`c') * (1-(plp`s'`d' + pa`s'`d' + pr`s'`d')) ///
	+ (pe`s'`a' * pe`s'`b' * pe`s'`c') * (1-(plp`s'`d' + pa`s'`d' + pr`s'`d' + pe`s'`d')) 
	
local a = 1
local b = 2
local c = 4
local d = 3
gen pbn_`a'`b'`c'`s' = (plp`s'`a' * plp`s'`b' * plp`s'`c') * (1-plp`s'`d') ///
	+ (pa`s'`a' * pa`s'`b' * pa`s'`c') * (1-(plp`s'`d' + pa`s'`d')) ///
	+ (pr`s'`a' * pr`s'`b' * pr`s'`c') * (1-(plp`s'`d' + pa`s'`d' + pr`s'`d')) ///
	+ (pe`s'`a' * pe`s'`b' * pe`s'`c') * (1-(plp`s'`d' + pa`s'`d' + pr`s'`d' + pe`s'`d')) 
	
local a = 2
local b = 3
local c = 4
local d = 1
gen pbn_`a'`b'`c'`s' = (plp`s'`a' * plp`s'`b' * plp`s'`c') * (1-plp`s'`d') ///
	+ (pa`s'`a' * pa`s'`b' * pa`s'`c') * (1-(plp`s'`d' + pa`s'`d')) ///
	+ (pr`s'`a' * pr`s'`b' * pr`s'`c') * (1-(plp`s'`d' + pa`s'`d' + pr`s'`d')) ///
	+ (pe`s'`a' * pe`s'`b' * pe`s'`c') * (1-(plp`s'`d' + pa`s'`d' + pr`s'`d' + pe`s'`d')) 
	
local a = 1
local b = 3
local c = 4
local d = 2
gen pbn_`a'`b'`c'`s' = (plp`s'`a' * plp`s'`b' * plp`s'`c') * (1-plp`s'`d') ///
	+ (pa`s'`a' * pa`s'`b' * pa`s'`c') * (1-(plp`s'`d' + pa`s'`d')) ///
	+ (pr`s'`a' * pr`s'`b' * pr`s'`c') * (1-(plp`s'`d' + pa`s'`d' + pr`s'`d')) ///
	+ (pe`s'`a' * pe`s'`b' * pe`s'`c') * (1-(plp`s'`d' + pa`s'`d' + pr`s'`d' + pe`s'`d')) 

* Pr all four are equal
local a = 1
local b = 2
local c = 3
local d = 4
gen pbn_`a'`b'`c'`d'`s' = (plp`s'`a' * plp`s'`b' * plp`s'`c' * plp`s'`d') ///
	+ (pa`s'`a' * pa`s'`b' * pa`s'`c' * pa`s'`d')  ///
	+ (pr`s'`a' * pr`s'`b' * pr`s'`c' * pr`s'`d') ///
	+ (pe`s'`a' * pe`s'`b' * pe`s'`c' * pe`s'`d')
}	

* If only one group in the school, it must be the bottleneck
replace pbn_1m = 1 if N1!=. & N2==. & N3==. & N4==.
replace pbn_2m = 1 if N2!=. & N1==. & N3==. & N4==.
replace pbn_3m = 1 if N3!=. & N1==. & N2==. & N4==.
replace pbn_4m = 1 if N4!=. & N1==. & N2==. & N3==.

* check that the total bottleneck probabilities sum up to 1 within subject
foreach s in m /*r w*/ {
	egen temp`s' = rowtotal(pbn_*`s')
	}
* lots are zero -- look into this -- caused by missing subgroups I think
sum tempm if tempm!=0
drop temp*

* renorm pbn* by dividing by (1-pbn_1234m)
foreach v in pbn_1m pbn_2m pbn_3m pbn_4m pbn_12m pbn_13m pbn_14m pbn_23m pbn_24m pbn_34m pbn_123m pbn_124m pbn_234m pbn_134m {
	gen n`v' = `v'/(1-pbn_1234m)
	}
egen max_pbn = rowmax(npbn*)
gen BNgroups=.
foreach n in 1 2 3 4 12 13 14 23 24 34 123 124 234 134 {
	replace BNgroups = `n' if max_pbn==npbn_`n'm
	}
gen BNgroup1 = 1 if BNgroups == 1 | BNgroups == 12 | BNgroups == 13 |  BNgroups == 14 | BNgroups == 123 | BNgroups == 124 | BNgroups == 134
replace BNgroup1 = 2 if BNgroups == 2 | BNgroups == 23 | BNgroups == 24 |  BNgroups == 234
replace BNgroup1 = 3 if BNgroups == 3 | BNgroups == 34
replace BNgroup1 = 4 if BNgroups == 4 
gen BNgroup2 = 2 if BNgroups == 12 | BNgroups == 123 |  BNgroups == 124
replace BNgroup2 = 3 if BNgroups == 13 | BNgroups==23 | BNgroups == 234 |  BNgroups == 134
replace BNgroup2 = 4 if BNgroups == 14 | BNgroups == 24 |  BNgroups == 34
gen BNgroup3 = 3 if BNgroups == 123 
replace BNgroup3 = 4 if BNgroups == 234 | BNgroups == 134

* pbn_m* gives the probabilitiy that the enumerated groups have the lowest rating. it doesn't tell us what that rating is.
* below we derive the probability that a school ends up in one of the four ratings
* kind of clunky because probabilities depend on which groups are missing
gen t = 1 if N1!=. & N2==. & N3==. & N4==.
replace t = 2 if N2!=. & N1==. & N3==. & N4==.
replace t = 3 if N3!=. & N1==. & N2==. & N4==.
replace t = 4 if N4!=. & N1==. & N2==. & N3==.

replace t = 12 if N1!=. & N2!=. & N3==. & N4==.
replace t = 13 if N1!=. & N2==. & N3!=. & N4==.
replace t = 14 if N1!=. & N2==. & N3==. & N4!=.

replace t = 23 if N1==. & N2!=. & N3!=. & N4==.
replace t = 24 if N1==. & N2!=. & N3==. & N4!=.
replace t = 34 if N1==. & N2==. & N3!=. & N4!=.

replace t = 123 if N1!=. & N2!=. & N3!=. & N4==.
replace t = 124 if N1!=. & N2!=. & N3==. & N4!=.
replace t = 134 if N1!=. & N2==. & N3!=. & N4!=.
replace t = 234 if N1==. & N2!=. & N3!=. & N4!=.

replace t = 1234 if N1!=. & N2!=. & N3!=. & N4!=.

* Exemplary schools
gen p_schE = pem1 * pem2 * pem3 * pem4 if t == 1234
replace p_schE = pem1 * pem2 * pem3 if t == 123
replace p_schE = pem1 * pem2 * pem4 if t == 124
replace p_schE = pem1 * pem3 * pem4 if t == 134
replace p_schE = pem2 * pem3 * pem4 if t == 234
replace p_schE = pem1 * pem2 if t == 12
replace p_schE = pem1 * pem3 if t == 13
replace p_schE = pem1 * pem4 if t == 14
replace p_schE = pem2 * pem3 if t == 23
replace p_schE = pem2 * pem4 if t == 24
replace p_schE = pem3 * pem4 if t == 34
forvalues g = 1(1)4{
replace p_schE = pem`g' if t == `g'
}
* Recognized schools
gen p_schR = ((pem1 + prm1) * (pem2 + prm2) * (pem3 + prm3) * (pem4 + prm4)) - p_schE if t == 1234
replace p_schR = ((pem1 + prm1) * (pem2 + prm2) * (pem3 + prm3)) - p_schE if t == 123
replace p_schR = ((pem1 + prm1) * (pem2 + prm2) * (pem4 + prm4)) - p_schE if t == 124
replace p_schR = ((pem1 + prm1) * (pem3 + prm3) * (pem4 + prm4)) - p_schE if t == 134
replace p_schR = ((pem2 + prm2) * (pem3 + prm3) * (pem4 + prm4)) - p_schE if t == 234
replace p_schR = ((pem1 + prm1) * (pem2 + prm2)) - p_schE if t == 12
replace p_schR = ((pem1 + prm1) * (pem3 + prm3)) - p_schE if t == 13
replace p_schR = ((pem1 + prm1) * (pem4 + prm4)) - p_schE if t == 14
replace p_schR = ((pem2 + prm2) * (pem3 + prm3)) - p_schE if t == 23
replace p_schR = ((pem2 + prm2) * (pem4 + prm4)) - p_schE if t == 24
replace p_schR = ((pem3 + prm3) * (pem4 + prm4)) - p_schE if t == 34
forvalues g = 1(1)4{
replace p_schR = prm`g' if t == `g'
}
* Acceptable schools
gen p_schA = ((pem1 + prm1 + pam1) * (pem2 + prm2 + pam2) * (pem3 + prm3 + pam3) * (pem4 + prm4 + pam4)) - (p_schE + p_schR) if t == 1234
replace p_schA = ((pem1 + prm1 + pam1) * (pem2 + prm2 + pam2) * (pem3 + prm3 + pam3)) - (p_schE + p_schR) if t == 123
replace p_schA = ((pem1 + prm1 + pam1) * (pem2 + prm2 + pam2) * (pem4 + prm4 + pam4)) - (p_schE + p_schR) if t == 124
replace p_schA = ((pem1 + prm1 + pam1) * (pem3 + prm3 + pam3) * (pem4 + prm4 + pam4)) - (p_schE + p_schR) if t == 134
replace p_schA = ((pem2 + prm2 + pam2) * (pem3 + prm3 + pam3) * (pem4 + prm4 + pam4)) - (p_schE + p_schR) if t == 234
replace p_schA = ((pem1 + prm1 + pam1) * (pem2 + prm2 + pam2)) - (p_schE + p_schR) if t == 12
replace p_schA = ((pem1 + prm1 + pam1) * (pem3 + prm3 + pam3)) - (p_schE + p_schR) if t == 13
replace p_schA = ((pem1 + prm1 + pam1) * (pem4 + prm4 + pam4)) - (p_schE + p_schR) if t == 14
replace p_schA = ((pem2 + prm2 + pam2) * (pem3 + prm3 + pam3)) - (p_schE + p_schR) if t == 23
replace p_schA = ((pem2 + prm2 + pam2) * (pem4 + prm4 + pam4)) - (p_schE + p_schR) if t == 24
replace p_schA = ((pem3 + prm3 + pam3) * (pem4 + prm4 + pam4)) - (p_schE + p_schR) if t == 34
forvalues g = 1(1)4{
replace p_schA = pam`g' if t == `g'
}

* LP schools
gen p_schLP = 1 - (p_schE + p_schR + p_schA)

foreach v in E R A LP {
	label var p_sch`v' "Probability of school `v' rating"
	}
	
egen tempmax = rowmax(p_schLP p_schA p_schR p_schE)
gen exp_rating=""
foreach r in E R A LP {
	replace exp_rating = "`r'" if tempmax==p_sch`r'
}


* This data is in subgroup wide format, with one obs per school-year
* Wide vars ending in 1=white, 2=black, 3=hisp, 4=FRPL

* Bring in official AEIS ratings
* This also includes the NonMathConstraintIn94 flag and a sample flag
rename campus9 campus
merge 1:1 campus rated_year using data/AEISRating_short.dta, keep(1 3)
drop if rated_year<1996 | rated_year>2002
tab rated_year _merge if sample!=0
* this excludes schools that are explicitly named alternative schools in AEIS
* e.g. Juvenile Justice centers, Rehab centers, teen pregnancy centers
drop if sample==0
rename _merge mrg_ERC_AEIS
rename campus campus9
drop if ratingAEIS=="N"
replace ratingAEIS_cons="LP" if ratingAEIS=="L"

* School-level descriptive statistics
tab exp_rating year_9

* Compare to AEIS rating
tab ratingAEIS_cons exp_rating
bys year_9: tab ratingAEIS_cons exp_rating

drop plpm* pam* prm* pem* plpr* par* prr* per* plpw* paw* prw* pew* 
drop if year_9==.
save data/0718_13_sch_probs_avg.dta, replace

keep campus year_9  exp_rating p_sch* 
save data/0718_13_sch_probs_small_avg.dta, replace
} // end part4 loop

* PART 4: school predictions WITHOUT DROPPING SMALL SUBGROUPS 11/3/2014
if "$part4_nodrop"=="1"{
*Beginging setup done in part4_fullpred, only now drop 10%
use data/0718_13_computed_integrals_fullpred.dta, clear

merge 1:1 campus year group using data/0718_13_subgroup_interim_fullpred
drop cutoff* _merge 
/*
* some groups are too small to get means or SEs
*SRC 4.4.2013 switch to 30 kids
count
*40189
drop if N<30
count
*15840

*SRC drop if subgroup less than 10%
g percent = N/g9enrollment
drop if percent<.1
drop percent 
count
*15047
*/

***KEEP LOW % BUT DROP THOSE CLOSE TO THRESHOLD
*SRC drop if subgroup less than 10%
g percent = N/g9enrollment
drop if percent<.1&percent>.08
drop percent 
count


set more off
reshape wide prob_passm - N, i(campus9 year_9) j(group)

* Calculate conditional probabilities that each subgroup is the bottleneck in its school in each year
* Pr that only one group is the bottleneck: 1 or 2 or 3 or 4

* if the group is missing for that school, then its probability of being the bottleneck is zero
* this might be a problem with the BNgroups code later on
foreach s in m r w {
	foreach r in lp a r e {
	forvalues g = 1(1)4{
		replace p`r'`s'`g' = 0 if p`r'`s'`g'==.
		}
	}	
}	

foreach s in m /* r w */ {
local a = 1
local b = 2
local c = 3
local d = 4
gen pbn_`a'`s' = plp`s'`a' * (1-plp`s'`b') * (1-plp`s'`c') * (1-plp`s'`d') ///
	+ pa`s'`a' * (1-(plp`s'`b' + pa`s'`b')) * (1-(plp`s'`c' + pa`s'`c')) * (1-(plp`s'`d' + pa`s'`d')) ///
	+ pr`s'`a' * (1-(plp`s'`b' + pa`s'`b' + pr`s'`b')) * (1-(plp`s'`c' + pa`s'`c' + pr`s'`c')) * (1-(plp`s'`d' + pa`s'`d' + pr`s'`d')) ///
	+ pe`s'`a' * (1-(plp`s'`b' + pa`s'`b' + pr`s'`b' + pe`s'`b')) * (1-(plp`s'`c' + pa`s'`c' + pr`s'`c' + pe`s'`c')) * (1-(plp`s'`d' + pa`s'`d' + pr`s'`d' + pe`s'`d')) 
	
local a = 2
local b = 1
local c = 3
local d = 4
gen pbn_`a'`s' = plp`s'`a' * (1-plp`s'`b') * (1-plp`s'`c') * (1-plp`s'`d') ///
	+ pa`s'`a' * (1-(plp`s'`b' + pa`s'`b')) * (1-(plp`s'`c' + pa`s'`c')) * (1-(plp`s'`d' + pa`s'`d')) ///
	+ pr`s'`a' * (1-(plp`s'`b' + pa`s'`b' + pr`s'`b')) * (1-(plp`s'`c' + pa`s'`c' + pr`s'`c')) * (1-(plp`s'`d' + pa`s'`d' + pr`s'`d')) ///
	+ pe`s'`a' * (1-(plp`s'`b' + pa`s'`b' + pr`s'`b' + pe`s'`b')) * (1-(plp`s'`c' + pa`s'`c' + pr`s'`c' + pe`s'`c')) * (1-(plp`s'`d' + pa`s'`d' + pr`s'`d' + pe`s'`d')) 
	
local a = 3
local b = 1
local c = 2
local d = 4
gen pbn_`a'`s' = plp`s'`a' * (1-plp`s'`b') * (1-plp`s'`c') * (1-plp`s'`d') ///
	+ pa`s'`a' * (1-(plp`s'`b' + pa`s'`b')) * (1-(plp`s'`c' + pa`s'`c')) * (1-(plp`s'`d' + pa`s'`d')) ///
	+ pr`s'`a' * (1-(plp`s'`b' + pa`s'`b' + pr`s'`b')) * (1-(plp`s'`c' + pa`s'`c' + pr`s'`c')) * (1-(plp`s'`d' + pa`s'`d' + pr`s'`d')) ///
	+ pe`s'`a' * (1-(plp`s'`b' + pa`s'`b' + pr`s'`b' + pe`s'`b')) * (1-(plp`s'`c' + pa`s'`c' + pr`s'`c' + pe`s'`c')) * (1-(plp`s'`d' + pa`s'`d' + pr`s'`d' + pe`s'`d')) 
		
local a = 4
local b = 1
local c = 2
local d = 3
gen pbn_`a'`s' = plp`s'`a' * (1-plp`s'`b') * (1-plp`s'`c') * (1-plp`s'`d') ///
	+ pa`s'`a' * (1-(plp`s'`b' + pa`s'`b')) * (1-(plp`s'`c' + pa`s'`c')) * (1-(plp`s'`d' + pa`s'`d')) ///
	+ pr`s'`a' * (1-(plp`s'`b' + pa`s'`b' + pr`s'`b')) * (1-(plp`s'`c' + pa`s'`c' + pr`s'`c')) * (1-(plp`s'`d' + pa`s'`d' + pr`s'`d')) ///
	+ pe`s'`a' * (1-(plp`s'`b' + pa`s'`b' + pr`s'`b' + pe`s'`b')) * (1-(plp`s'`c' + pa`s'`c' + pr`s'`c' + pe`s'`c')) * (1-(plp`s'`d' + pa`s'`d' + pr`s'`d' + pe`s'`d')) 
	
* Pr that two groups are the bottleneck: ab + ac + ad + bc + bd + cd
local a = 1
local b = 2
local c = 3
local d = 4
gen pbn_`a'`b'`s' = (plp`s'`a' * plp`s'`b') * (1-plp`s'`c') * (1-plp`s'`d') ///
	+ (pa`s'`a' * pa`s'`b') * (1-(plp`s'`c' + pa`s'`c')) * (1-(plp`s'`d' + pa`s'`d')) ///
	+ (pr`s'`a' * pr`s'`b') * (1-(plp`s'`c' + pa`s'`c' + pr`s'`c')) * (1-(plp`s'`d' + pa`s'`d' + pr`s'`d')) ///
	+ (pe`s'`a' * pe`s'`b') * (1-(plp`s'`c' + pa`s'`c' + pr`s'`c' + pe`s'`c')) * (1-(plp`s'`d' + pa`s'`d' + pr`s'`d' + pe`s'`d')) 
	
local a = 1
local b = 3
local c = 2
local d = 4
gen pbn_`a'`b'`s' = (plp`s'`a' * plp`s'`b') * (1-plp`s'`c') * (1-plp`s'`d') ///
	+ (pa`s'`a' * pa`s'`b') * (1-(plp`s'`c' + pa`s'`c')) * (1-(plp`s'`d' + pa`s'`d')) ///
	+ (pr`s'`a' * pr`s'`b') * (1-(plp`s'`c' + pa`s'`c' + pr`s'`c')) * (1-(plp`s'`d' + pa`s'`d' + pr`s'`d')) ///
	+ (pe`s'`a' * pe`s'`b') * (1-(plp`s'`c' + pa`s'`c' + pr`s'`c' + pe`s'`c')) * (1-(plp`s'`d' + pa`s'`d' + pr`s'`d' + pe`s'`d')) 
	
local a = 1
local b = 4
local c = 2
local d = 3
gen pbn_`a'`b'`s' = (plp`s'`a' * plp`s'`b') * (1-plp`s'`c') * (1-plp`s'`d') ///
	+ (pa`s'`a' * pa`s'`b') * (1-(plp`s'`c' + pa`s'`c')) * (1-(plp`s'`d' + pa`s'`d')) ///
	+ (pr`s'`a' * pr`s'`b') * (1-(plp`s'`c' + pa`s'`c' + pr`s'`c')) * (1-(plp`s'`d' + pa`s'`d' + pr`s'`d')) ///
	+ (pe`s'`a' * pe`s'`b') * (1-(plp`s'`c' + pa`s'`c' + pr`s'`c' + pe`s'`c')) * (1-(plp`s'`d' + pa`s'`d' + pr`s'`d' + pe`s'`d')) 

local a = 2
local b = 3
local c = 1
local d = 4
gen pbn_`a'`b'`s' = (plp`s'`a' * plp`s'`b') * (1-plp`s'`c') * (1-plp`s'`d') ///
	+ (pa`s'`a' * pa`s'`b') * (1-(plp`s'`c' + pa`s'`c')) * (1-(plp`s'`d' + pa`s'`d')) ///
	+ (pr`s'`a' * pr`s'`b') * (1-(plp`s'`c' + pa`s'`c' + pr`s'`c')) * (1-(plp`s'`d' + pa`s'`d' + pr`s'`d')) ///
	+ (pe`s'`a' * pe`s'`b') * (1-(plp`s'`c' + pa`s'`c' + pr`s'`c' + pe`s'`c')) * (1-(plp`s'`d' + pa`s'`d' + pr`s'`d' + pe`s'`d')) 	

local a = 2
local b = 4
local c = 1
local d = 3
gen pbn_`a'`b'`s' = (plp`s'`a' * plp`s'`b') * (1-plp`s'`c') * (1-plp`s'`d') ///
	+ (pa`s'`a' * pa`s'`b') * (1-(plp`s'`c' + pa`s'`c')) * (1-(plp`s'`d' + pa`s'`d')) ///
	+ (pr`s'`a' * pr`s'`b') * (1-(plp`s'`c' + pa`s'`c' + pr`s'`c')) * (1-(plp`s'`d' + pa`s'`d' + pr`s'`d')) ///
	+ (pe`s'`a' * pe`s'`b') * (1-(plp`s'`c' + pa`s'`c' + pr`s'`c' + pe`s'`c')) * (1-(plp`s'`d' + pa`s'`d' + pr`s'`d' + pe`s'`d')) 
	
local a = 3
local b = 4
local c = 1
local d = 2
gen pbn_`a'`b'`s' = (plp`s'`a' * plp`s'`b') * (1-plp`s'`c') * (1-plp`s'`d') ///
	+ (pa`s'`a' * pa`s'`b') * (1-(plp`s'`c' + pa`s'`c')) * (1-(plp`s'`d' + pa`s'`d')) ///
	+ (pr`s'`a' * pr`s'`b') * (1-(plp`s'`c' + pa`s'`c' + pr`s'`c')) * (1-(plp`s'`d' + pa`s'`d' + pr`s'`d')) ///
	+ (pe`s'`a' * pe`s'`b') * (1-(plp`s'`c' + pa`s'`c' + pr`s'`c' + pe`s'`c')) * (1-(plp`s'`d' + pa`s'`d' + pr`s'`d' + pe`s'`d')) 		
	
* 3-combos: 123 124 234 134 
local a = 1
local b = 2
local c = 3
local d = 4
gen pbn_`a'`b'`c'`s' = (plp`s'`a' * plp`s'`b' * plp`s'`c') * (1-plp`s'`d') ///
	+ (pa`s'`a' * pa`s'`b' * pa`s'`c') * (1-(plp`s'`d' + pa`s'`d')) ///
	+ (pr`s'`a' * pr`s'`b' * pr`s'`c') * (1-(plp`s'`d' + pa`s'`d' + pr`s'`d')) ///
	+ (pe`s'`a' * pe`s'`b' * pe`s'`c') * (1-(plp`s'`d' + pa`s'`d' + pr`s'`d' + pe`s'`d')) 
	
local a = 1
local b = 2
local c = 4
local d = 3
gen pbn_`a'`b'`c'`s' = (plp`s'`a' * plp`s'`b' * plp`s'`c') * (1-plp`s'`d') ///
	+ (pa`s'`a' * pa`s'`b' * pa`s'`c') * (1-(plp`s'`d' + pa`s'`d')) ///
	+ (pr`s'`a' * pr`s'`b' * pr`s'`c') * (1-(plp`s'`d' + pa`s'`d' + pr`s'`d')) ///
	+ (pe`s'`a' * pe`s'`b' * pe`s'`c') * (1-(plp`s'`d' + pa`s'`d' + pr`s'`d' + pe`s'`d')) 
	
local a = 2
local b = 3
local c = 4
local d = 1
gen pbn_`a'`b'`c'`s' = (plp`s'`a' * plp`s'`b' * plp`s'`c') * (1-plp`s'`d') ///
	+ (pa`s'`a' * pa`s'`b' * pa`s'`c') * (1-(plp`s'`d' + pa`s'`d')) ///
	+ (pr`s'`a' * pr`s'`b' * pr`s'`c') * (1-(plp`s'`d' + pa`s'`d' + pr`s'`d')) ///
	+ (pe`s'`a' * pe`s'`b' * pe`s'`c') * (1-(plp`s'`d' + pa`s'`d' + pr`s'`d' + pe`s'`d')) 
	
local a = 1
local b = 3
local c = 4
local d = 2
gen pbn_`a'`b'`c'`s' = (plp`s'`a' * plp`s'`b' * plp`s'`c') * (1-plp`s'`d') ///
	+ (pa`s'`a' * pa`s'`b' * pa`s'`c') * (1-(plp`s'`d' + pa`s'`d')) ///
	+ (pr`s'`a' * pr`s'`b' * pr`s'`c') * (1-(plp`s'`d' + pa`s'`d' + pr`s'`d')) ///
	+ (pe`s'`a' * pe`s'`b' * pe`s'`c') * (1-(plp`s'`d' + pa`s'`d' + pr`s'`d' + pe`s'`d')) 

* Pr all four are equal
local a = 1
local b = 2
local c = 3
local d = 4
gen pbn_`a'`b'`c'`d'`s' = (plp`s'`a' * plp`s'`b' * plp`s'`c' * plp`s'`d') ///
	+ (pa`s'`a' * pa`s'`b' * pa`s'`c' * pa`s'`d')  ///
	+ (pr`s'`a' * pr`s'`b' * pr`s'`c' * pr`s'`d') ///
	+ (pe`s'`a' * pe`s'`b' * pe`s'`c' * pe`s'`d')
}	

* If only one group in the school, it must be the bottleneck
replace pbn_1m = 1 if N1!=. & N2==. & N3==. & N4==.
replace pbn_2m = 1 if N2!=. & N1==. & N3==. & N4==.
replace pbn_3m = 1 if N3!=. & N1==. & N2==. & N4==.
replace pbn_4m = 1 if N4!=. & N1==. & N2==. & N3==.

* check that the total bottleneck probabilities sum up to 1 within subject
foreach s in m /*r w*/ {
	egen temp`s' = rowtotal(pbn_*`s')
	}
* lots are zero -- look into this -- caused by missing subgroups I think
sum tempm if tempm!=0
drop temp*

* renorm pbn* by dividing by (1-pbn_1234m)
foreach v in pbn_1m pbn_2m pbn_3m pbn_4m pbn_12m pbn_13m pbn_14m pbn_23m pbn_24m pbn_34m pbn_123m pbn_124m pbn_234m pbn_134m {
	gen n`v' = `v'/(1-pbn_1234m)
	}
egen max_pbn = rowmax(npbn*)
gen BNgroups=.
foreach n in 1 2 3 4 12 13 14 23 24 34 123 124 234 134 {
	replace BNgroups = `n' if max_pbn==npbn_`n'm
	}
gen BNgroup1 = 1 if BNgroups == 1 | BNgroups == 12 | BNgroups == 13 |  BNgroups == 14 | BNgroups == 123 | BNgroups == 124 | BNgroups == 134
replace BNgroup1 = 2 if BNgroups == 2 | BNgroups == 23 | BNgroups == 24 |  BNgroups == 234
replace BNgroup1 = 3 if BNgroups == 3 | BNgroups == 34
replace BNgroup1 = 4 if BNgroups == 4 
gen BNgroup2 = 2 if BNgroups == 12 | BNgroups == 123 |  BNgroups == 124
replace BNgroup2 = 3 if BNgroups == 13 | BNgroups==23 | BNgroups == 234 |  BNgroups == 134
replace BNgroup2 = 4 if BNgroups == 14 | BNgroups == 24 |  BNgroups == 34
gen BNgroup3 = 3 if BNgroups == 123 
replace BNgroup3 = 4 if BNgroups == 234 | BNgroups == 134

* pbn_m* gives the probabilitiy that the enumerated groups have the lowest rating. it doesn't tell us what that rating is.
* below we derive the probability that a school ends up in one of the four ratings
* kind of clunky because probabilities depend on which groups are missing
gen t = 1 if N1!=. & N2==. & N3==. & N4==.
replace t = 2 if N2!=. & N1==. & N3==. & N4==.
replace t = 3 if N3!=. & N1==. & N2==. & N4==.
replace t = 4 if N4!=. & N1==. & N2==. & N3==.

replace t = 12 if N1!=. & N2!=. & N3==. & N4==.
replace t = 13 if N1!=. & N2==. & N3!=. & N4==.
replace t = 14 if N1!=. & N2==. & N3==. & N4!=.

replace t = 23 if N1==. & N2!=. & N3!=. & N4==.
replace t = 24 if N1==. & N2!=. & N3==. & N4!=.
replace t = 34 if N1==. & N2==. & N3!=. & N4!=.

replace t = 123 if N1!=. & N2!=. & N3!=. & N4==.
replace t = 124 if N1!=. & N2!=. & N3==. & N4!=.
replace t = 134 if N1!=. & N2==. & N3!=. & N4!=.
replace t = 234 if N1==. & N2!=. & N3!=. & N4!=.

replace t = 1234 if N1!=. & N2!=. & N3!=. & N4!=.

* Exemplary schools
gen p_schE = pem1 * pem2 * pem3 * pem4 if t == 1234
replace p_schE = pem1 * pem2 * pem3 if t == 123
replace p_schE = pem1 * pem2 * pem4 if t == 124
replace p_schE = pem1 * pem3 * pem4 if t == 134
replace p_schE = pem2 * pem3 * pem4 if t == 234
replace p_schE = pem1 * pem2 if t == 12
replace p_schE = pem1 * pem3 if t == 13
replace p_schE = pem1 * pem4 if t == 14
replace p_schE = pem2 * pem3 if t == 23
replace p_schE = pem2 * pem4 if t == 24
replace p_schE = pem3 * pem4 if t == 34
forvalues g = 1(1)4{
replace p_schE = pem`g' if t == `g'
}
* Recognized schools
gen p_schR = ((pem1 + prm1) * (pem2 + prm2) * (pem3 + prm3) * (pem4 + prm4)) - p_schE if t == 1234
replace p_schR = ((pem1 + prm1) * (pem2 + prm2) * (pem3 + prm3)) - p_schE if t == 123
replace p_schR = ((pem1 + prm1) * (pem2 + prm2) * (pem4 + prm4)) - p_schE if t == 124
replace p_schR = ((pem1 + prm1) * (pem3 + prm3) * (pem4 + prm4)) - p_schE if t == 134
replace p_schR = ((pem2 + prm2) * (pem3 + prm3) * (pem4 + prm4)) - p_schE if t == 234
replace p_schR = ((pem1 + prm1) * (pem2 + prm2)) - p_schE if t == 12
replace p_schR = ((pem1 + prm1) * (pem3 + prm3)) - p_schE if t == 13
replace p_schR = ((pem1 + prm1) * (pem4 + prm4)) - p_schE if t == 14
replace p_schR = ((pem2 + prm2) * (pem3 + prm3)) - p_schE if t == 23
replace p_schR = ((pem2 + prm2) * (pem4 + prm4)) - p_schE if t == 24
replace p_schR = ((pem3 + prm3) * (pem4 + prm4)) - p_schE if t == 34
forvalues g = 1(1)4{
replace p_schR = prm`g' if t == `g'
}
* Acceptable schools
gen p_schA = ((pem1 + prm1 + pam1) * (pem2 + prm2 + pam2) * (pem3 + prm3 + pam3) * (pem4 + prm4 + pam4)) - (p_schE + p_schR) if t == 1234
replace p_schA = ((pem1 + prm1 + pam1) * (pem2 + prm2 + pam2) * (pem3 + prm3 + pam3)) - (p_schE + p_schR) if t == 123
replace p_schA = ((pem1 + prm1 + pam1) * (pem2 + prm2 + pam2) * (pem4 + prm4 + pam4)) - (p_schE + p_schR) if t == 124
replace p_schA = ((pem1 + prm1 + pam1) * (pem3 + prm3 + pam3) * (pem4 + prm4 + pam4)) - (p_schE + p_schR) if t == 134
replace p_schA = ((pem2 + prm2 + pam2) * (pem3 + prm3 + pam3) * (pem4 + prm4 + pam4)) - (p_schE + p_schR) if t == 234
replace p_schA = ((pem1 + prm1 + pam1) * (pem2 + prm2 + pam2)) - (p_schE + p_schR) if t == 12
replace p_schA = ((pem1 + prm1 + pam1) * (pem3 + prm3 + pam3)) - (p_schE + p_schR) if t == 13
replace p_schA = ((pem1 + prm1 + pam1) * (pem4 + prm4 + pam4)) - (p_schE + p_schR) if t == 14
replace p_schA = ((pem2 + prm2 + pam2) * (pem3 + prm3 + pam3)) - (p_schE + p_schR) if t == 23
replace p_schA = ((pem2 + prm2 + pam2) * (pem4 + prm4 + pam4)) - (p_schE + p_schR) if t == 24
replace p_schA = ((pem3 + prm3 + pam3) * (pem4 + prm4 + pam4)) - (p_schE + p_schR) if t == 34
forvalues g = 1(1)4{
replace p_schA = pam`g' if t == `g'
}

* LP schools
gen p_schLP = 1 - (p_schE + p_schR + p_schA)

foreach v in E R A LP {
	label var p_sch`v' "Probability of school `v' rating"
	}
	
egen tempmax = rowmax(p_schLP p_schA p_schR p_schE)
gen exp_rating=""
foreach r in E R A LP {
	replace exp_rating = "`r'" if tempmax==p_sch`r'
}


* This data is in subgroup wide format, with one obs per school-year
* Wide vars ending in 1=white, 2=black, 3=hisp, 4=FRPL

* Bring in official AEIS ratings
* This also includes the NonMathConstraintIn94 flag and a sample flag
drop if year_9>1999
rename campus9 campus

*merge 1:1 campus rated_year using "O:\projects\LTSO\Maya\Paper2\0207_AEISRating_short.dta, keep(1 3)
merge 1:1 campus rated_year using data/AEISRating_short.dta, keep(1 3)
drop if rated_year<1996 | rated_year>2002
tab rated_year _merge if sample!=0
* this excludes schools that are explicitly named alternative schools in AEIS
* e.g. Juvenile Justice centers, Rehab centers, teen pregnancy centers
drop if sample==0
rename _merge mrg_ERC_AEIS
rename campus campus9
drop if ratingAEIS=="N"
replace ratingAEIS_cons="LP" if ratingAEIS=="L"

* School-level descriptive statistics

* Compare to AEIS rating
tab ratingAEIS_cons exp_rating
bys year_9: tab ratingAEIS_cons exp_rating
drop if year_9==.
save data/0718_13_sch_probs_long_fullpred.dta, replace
drop plpm* pam* prm* pem* plpr* par* prr* per* plpw* paw* prw* pew* 
save data/0718_13_sch_probs_fullpred.dta, replace

keep campus year_9  exp_rating p_sch* 
save data/0718_13_sch_probs_small_nodrop.dta, replace
} // end part4 loop


***school level group variables
if "$part4_5"=="1"{
use data/0718_13_sch_probs_long.dta, clear

gen temp=t==1 | t==14
bysort campus9: egen ever_white_only=max(temp)
bysort campus9: egen always_white_only=min(temp)
*make lowest group when expected pass rate for one group is outside 1 SD CI*
*Ignore FRPL*
g byte black_below_white=(((prob_passm2+se_prob_passm2)<(prob_passm1-se_prob_passm1)) & prob_passm2!=. & prob_passm1!=.) 
g byte hisp_below_white=(((prob_passm3+se_prob_passm3)<(prob_passm1-se_prob_passm1)) & prob_passm3!=. & prob_passm1!=.) 
g byte frpl_below_white=(((prob_passm4+se_prob_passm4)<(prob_passm1-se_prob_passm1)) & prob_passm4!=. & prob_passm1!=.) 

g byte black_lowestgrp=(((prob_passm2+se_prob_passm2)<(prob_passm1-se_prob_passm1)) & prob_passm2!=. & prob_passm1!=.) & (((prob_passm2+se_prob_passm2)<(prob_passm3-se_prob_passm3)) & prob_passm2!=. & prob_passm3!=.)
g byte hisp_lowestgrp=(((prob_passm3+se_prob_passm3)<(prob_passm1-se_prob_passm1)) & prob_passm3!=. & prob_passm1!=.) & (((prob_passm3+se_prob_passm3)<(prob_passm2-se_prob_passm2)) & prob_passm3!=. & prob_passm2!=.)
g byte white_lowestgrp=(((prob_passm1+se_prob_passm1)<(prob_passm2-se_prob_passm2)) & prob_passm2!=. & prob_passm1!=.) & (((prob_passm1+se_prob_passm1)<(prob_passm3-se_prob_passm3)) & prob_passm3!=. & prob_passm1!=.)

egen min = rowmin(prob_passm1 prob_passm2 prob_passm3 prob_passm4)
g black_low = (prob_passm2==min) if prob_passm2!=.
g hisp_low = (prob_passm3==min) if prob_passm3!=.
g frpl_low = (prob_passm4==min) if prob_passm4!=.
g white_low = (prob_passm1==min) if prob_passm1!=.
foreach v of varlist *_low{
	replace `v'=0 if `v'==.
	}
	*2 ties
	replace frpl_low=0 if hisp_low==1

/*
replace black_lowestgrp=1 if plpm2>plpm1&plpm2>plpm3&plpm2>plpm4 & t == 1234
replace hisp_lowestgrp=1 if plpm3>plpm1&plpm3>plpm2&plpm3>plpm4 & t == 1234
replace frpl_lowestgrp=1 if plpm4>plpm1&plpm4>plpm3&plpm4>plpm2 & t == 1234

replace black_lowestgrp=1 if plpm2>plpm1&plpm2>plpm3 & t == 123
replace hisp_lowestgrp=1 if plpm3>plpm1&plpm3>plpm2 & t == 123

replace black_lowestgrp=1 if plpm2>plpm1&plpm2>plpm4 & t == 124
replace frpl_lowestgrp=1 if plpm4>plpm1&plpm4>plpm2 & t == 124

replace hisp_lowestgrp=1 if plpm3>plpm1&plpm3>plpm4 & t == 134
replace frpl_lowestgrp=1 if plpm4>plpm1&plpm4>plpm3 & t == 134

replace black_lowestgrp=1 if plpm2>plpm4&plpm2>plpm3 & t == 234
replace hisp_lowestgrp=1 if plpm3>plpm4&plpm3>plpm2 & t == 234
replace frpl_lowestgrp=1 if plpm4>plpm3&plpm4>plpm2 & t == 234

replace black_lowestgrp=1 if plpm2>plpm1 & t == 12
replace hisp_lowestgrp=1 if plpm3>plpm1 & t == 13
replace frpl_lowestgrp=1 if plpm4>plpm1 & t == 14

replace black_lowestgrp=1 if plpm2>plpm3 & t == 23
replace hisp_lowestgrp=1 if plpm3>plpm2 & t == 23

replace black_lowestgrp=1 if plpm2>plpm4 & t == 24
replace frpl_lowestgrp=1 if plpm4>plpm2 & t == 24

replace hisp_lowestgrp=1 if plpm3>plpm4 & t == 34
replace frpl_lowestgrp=1 if plpm4>plpm3 & t == 34
*/
keep campus9 year_9 *_below_white *lowestgrp *only *low
save data/lowestgrp.dta, replace

foreach y of numlist 2008/2009{
	use ssnrep state using "O:\data\tsp_erc\nsc\nsc`y'.dta, clear
		g TX=(state=="TX")
		drop state
		collapse (max) TX, by(ssnrep)
		g notTX=(TX==0)
		g year_9 =`y'-3
	save data\nsc_state`y'.dta, replace
	}
	append  using data\nsc_state2008.dta
	save data\nsc_state.dta, replace

use data/sample_all_cohorts.dta, clear
merge 1:1 ssnrep year_9 using data/g9campus9506.dta, keep(match) nogen
drop test dup grade 
sort  ssnrep year_9
bys ssnrep : keep if _n==1

merge 1:1 ssnrep using data\nsc_state2008.dta, keep(master match) nogen
merge 1:1 ssnrep using data\nsc_state2009.dta, keep(master match) nogen
keep if TX!=.

collapse (mean) notTX , by(campus9)

*about 15% of schools send more than 10% of their kids out of state
g border=(notTX>=0.1)

keep campus9 border

save data/border.dta, replace

}
* PART 5
* All of this was to determine which schools are bubble schools
* Now investigate whether bubble kids to better at bubble schools
* Save a mini dataset and merge back in to student level data
*7.18.2013 SRC now only generating variables actually used
if "$part5"=="1"{


foreach lo in nodrop fullpred notleave  avg  {
	if "`lo'"=="notleave"{
		local l ""
		local l2 ""
		}
	else if "`lo'"=="avg"{
		local l "_avg"
		local l2 ""
		}
	else if "`lo'"=="fullpred"{
		local l "_fullpred"
		local l2 "_fullpred"
		}
	else if "`lo'"=="nodrop"{
		local l "_nodrop"
		local l2 "_fullpred"
		}

use data/0718_2013_studentlevel`l2'.dta, clear
merge m:1 campus9 year_9 using data/0718_13_sch_probs_small`l'.dta, nogen

*misc setup
qui tab quint_prob_passm, gen(quintile)
drop if quint_prob_passm==.

gen byte blackhisp=black==1 | hisp==1
g byte whiteoth=(blackhisp==0)
g byte female=(male==0)
g byte notfrpl=(frpl==0)

gen byte g10take_m = (g10mscale!=. & g10mscale!=0)
gen byte g10take_r = (g10rscale!=. & g10rscale!=0)
foreach x in m r {
	replace g10`x'scale_pass=. if g10take_`x'==0
}
replace g10wscale=. if g10take_r==0

*dummies so don't have to use xi
qui tab year_9, gen(year9dum)
ren year9dum1 omitted_year9dum1


*SCHOOL VARS SETUP
*keep only cases for whom there is a probablity calculated
drop if p_schLP==.|p_schR==.|p_schE==.

	foreach r in E R A LP {
		gen p_round`r'=round((100*p_sch`r'),1)
	}
	gen p_roundRorE=p_roundR+p_roundE
	*Verify that there is a considerable mass of students/schools where pr(A) is rounded to 1*
	gen p_roundnotA=p_roundRorE+p_roundLP
	count if p_roundnotA==100
	*104152
	count if p_roundA==100
	*793024
	count if p_roundnotA!=100 & p_roundnotA!=.
	*1488589
	drop p_roundnotA

*DD - this is new - simplify categories - just sort by 8th grade math score - 3 terciles*
gen byte anyLP=p_roundLP>0 & p_roundLP!=.
gen byte anyRorE=p_roundRorE>0 & p_roundRorE!=.

foreach type in LP RorE{
	gen byte low`type'=p_round`type'>0&p_round`type'<33&p_round`type'!=.
	gen byte mid`type'=p_round`type'>=33 & p_round`type'<67&p_round`type'!=.
	gen byte high`type'= p_round`type'>=67&p_round`type'!=.
	}
	
*categorize by 8th grade pass/fail
gen byte g8mscale_fail=g8mscale_pass==0
gen byte g8rscale_fail=g8rscale_pass==0
gen byte g8_fail=g8mscale_fail==1 | g8rscale_fail==1
gen byte g8_pass=g8mscale_fail==0 & g8rscale_fail==0
foreach r in LP RorE {
	foreach p in fail pass {
		gen byte any`r'_`p'=any`r'*g8_`p'
	}
}
foreach r in LP RorE {
	foreach p in low mid high {
		gen byte any`r'_`p'schl=any`r'*`p'`r'
	}
}


*Modify/create some outcomes
forvalues y=23(1)26 {
	gen earn`y'_zeroes=earn`y'
	replace earn`y'_zeroes=0 if earn`y'_zeroes==.
}
gen earn23_24_25_zeroes=earn23_24_25
replace earn23_24_25_zeroes=0 if earn23_24_25_zeroes==.
gen earn24_25_26_zeroes=earn24_25_26
replace earn24_25_26_zeroes=0 if earn24_25_26==.


*Earnings imputations*
g earn25_mean_4miss=earn25
g earn25_sdplus1_4miss=earn25
g earn25_sdminus1_4miss=earn25
g earn25_sdplushalf_4miss=earn25
g earn25_sdminushalf_4miss=earn25
g earn25_zero_4miss=earn25
replace earn25_zero_4miss=0 if earn25==.

g safeA=anyLP==0 & anyRorE==0
g half_prob_passm=1 if g8_fail==1
replace half_prob_passm=2 if g8_pass==1

foreach t in anyLP anyRorE safeA {
foreach y of numlist 1995/1999{
foreach q of numlist 1/2{
	qui su earn25 if half_prob_passm==`q'&year_9==`y'&`t'==1
	local mean`q'`y'`x'=r(mean)
	local sd`q'`y'`x'=r(sd)
	local half_sd`q'`y'`x'=`sd`q'`y'`x''/2
	qui replace earn25_mean_4miss=`mean`q'`y'`x'' if earn25==.&half_prob_passm==`q'&year_9==`y'&`t'==1
	qui replace earn25_sdplus1_4miss=(`mean`q'`y'`x''+`sd`q'`y'`x'') if earn25==.&half_prob_passm==`q'&year_9==`y'&`t'==1
	qui replace earn25_sdminus1_4miss=(`mean`q'`y'`x''-`sd`q'`y'`x'') if earn25==.&half_prob_passm==`q'&year_9==`y'&`t'==1
	qui replace earn25_sdplushalf_4miss=(`mean`q'`y'`x''+`half_sd`q'`y'`x'') if earn25==.&half_prob_passm==`q'&year_9==`y'&`t'==1
	qui replace earn25_sdminushalf_4miss=(`mean`q'`y'`x''-`half_sd`q'`y'`x'') if earn25==.&half_prob_passm==`q'&year_9==`y'&`t'==1
	}
}
}

*Now create vars for school/earnings pathways*
forvalues y=19(1)25 {
	gen byte idle`y'=earn`y'==. & enrolledany_`y'==0
	gen byte inschool`y'=enrolledany_`y'==1
	gen  earn_noschl`y'=earn`y'
	replace earn_noschl`y'=. if inschool`y'==1
}
gen byte idle23_24_25=idle23==1 & idle24==1 & idle25==1
gen byte idle_all=idle19==1 & idle20==1 & idle21==1 & idle22==1 & idle23==1 & idle24==1 & idle25==1


*create classrank variable
egen avgscore=rowmean(g8mraw g8rraw)
bys campus9: egen rank=rank(avgscore)
bys campus9: egen count=count(avgscore)
g classrank=rank/count


*GROUPINGS 

/*urban districts
a.	Houston ISD 101912
b.	Dallas ISD 057905
c.	Ft. Worth ISD  220905
d.	Austin ISD 022790
e.	San Antonio  ISD 015907
f.	El Paso ISD 071902
	*/
tostring campus9, gen(distnum)
g length=length(distnum)	
g zero1="0"
g zero2="00"
egen blah1=concat(zero1 distnum)
egen blah2=concat(zero2 distnum)
replace distnum=blah2 if length==7
replace distnum=blah1 if length==8
g dist=substr(distnum,1, 6)
g byte urb =0
replace urb = 1 if dist=="101912"|dist=="057905"|dist=="220905"|dist=="022790"|dist=="015907"|dist=="071902"
g noturb=!(urb)
drop distnum length blah* zero* dist

*"border"
merge m:1 campus9 using data/border.dta, keep(master match) nogen
*Interactions with race, gender, frpl, urban, lep*
foreach g in  male urb lep border  {
	foreach x in LP RorE {
		gen byte any`x'_`g'=any`x'*`g'
	}
}

*school by cohort vars
merge m:1 campus9 year_9 using data/lowestgrp.dta, nogen keep(1 3)

*schXcohort FE
egen schXcohort=group(campus9 year_9)

foreach x in black hisp white frpl {
	gen byte `x'_pass=g8_pass==1 & `x'==1
}
foreach g in black hisp white frpl {
	foreach r in LP RorE {
		gen byte any`r'_`g'=any`r'*`g'
	}
}
foreach g in black hisp white frpl {
	foreach p in pass fail {
		foreach r in LP RorE {
			g byte any`r'_`g'_`p'=any`r'_`p'*`g'
		}
	}
}
*create a dummy for "targeted" subgroups - i.e. kids who are both minority and free lunch*
*Also compare by prior math scores*
*Finally, only include schools where the "accountable" groups include nonwhites*
gen target_pass=(black_pass==1 | hisp_pass==1) & frpl_pass==1
foreach r in LP RorE {
	gen any`r'_target=(any`r'_black==1 | any`r'_hisp==1) & (any`r'_frpl==1)
	gen any`r'_target_pass=(any`r'_black==1 | any`r'_hisp==1) & (any`r'_frpl_fail==1)
	gen any`r'_target_fail=(any`r'_black==1 | any`r'_hisp==1) & (any`r'_frpl_fail==1)
}

compress
save data/0718_13_stuanalysisfile`l'.dta, replace

} // end leaveout loop

*more with nodrop data set
use  data/0718_13_stuanalysisfile_nodrop.dta, clear
keep ssnrep year_9 anyLP anyRorE p_roundA
ren anyLP nodrop_anyLP
ren anyRorE nodrop_anyRorE
ren p_roundA nodrop_p_roundA

save data/temp_nodrop.dta, replace

use  data/0718_13_stuanalysisfile_fullpred.dta, clear
merge 1:1 ssnrep year_9 using data/temp_nodrop.dta, nogen keep( 1 3)
tab anyLP nodrop_anyLP
g byte wouldbe_anyLP = (anyLP==0&nodrop_anyLP==1)
tab anyRorE nodrop_anyRorE
g byte wouldnotbe_anyRorE = (anyRorE==1&nodrop_anyRorE==1)
replace anyRorE=0 if wouldnotbe_anyRorE==1

save  data/0718_13_stuanalysisfile_nodrop_analysis.dta, replace

*do a version where once set to "at risk" always "at risk"
use  data/0718_13_stuanalysisfile_fullpred.dta, clear
keep campus9 year_9 anyLP anyRorE
duplicates drop
reshape wide any*, i(campus9) j(year_9)
foreach s in anyLP anyRorE{
	foreach y of numlist 1996/1999{
	local y1=`y'-1
		replace `s'`y'=1 if `s'`y1'==1
	}
}
reshape long anyLP anyRorE, i(campus) j(year_9)
ren anyLP anyLPswitchedon 
ren anyRorE anyRorEswitchedon
save data/schoolson.dta, replace

use  data/0718_13_stuanalysisfile_fullpred.dta, clear
merge m:1 campus9 year_9 using data/schoolson.dta, keep(1 3) nogen


save  data/0718_13_stuanalysisfile_switchedon.dta, replace


*do a version with only "new" "at-risk"
***Keep 2 years, year before turned on, and year it got turned on
foreach s in anyLP anyRorE {
use  data/0718_13_stuanalysisfile_fullpred.dta, clear
keep campus9 year_9 `s'
duplicates drop
reshape wide `s', i(campus9) j(year_9)

*no variation, can't keep
drop if `s'1995==1&`s'1996==1&`s'1997==1&`s'1998==1&`s'1999==1
drop if `s'1995==0&`s'1996==0&`s'1997==0&`s'1998==0&`s'1999==0
drop if `s'1995==1
keep if (`s'1995==0&`s'1996==1)|(`s'1996==0&`s'1997==1)|(`s'1997==0&`s'1998==1)|(`s'1998==0&`s'1999==1)

	*I'm sure there's a way to do this nice, but I'm going to hard code it
	foreach n of numlist 1997/1999{
		replace `s'`n'=. if  (`s'1995==0&`s'1996==1)
	}
	foreach n of numlist 1995 1998/1999{
		replace `s'`n'=. if  (`s'1996==0&`s'1997==1)
	}
	foreach n of numlist 1995/1996 1999{
		replace `s'`n'=. if  (`s'1997==0&`s'1998==1)
	}
	foreach n of numlist 1995/1997 {
		replace `s'`n'=. if  (`s'1998==0&`s'1999==1)
	}
	
reshape long `s', i(campus) j(year_9)

ren `s' `s'onlynew
save data/onlynew`s'_2yrs.dta, replace

use  data/0718_13_stuanalysisfile_fullpred.dta, clear
*only keep matches so have a smaller data set
merge m:1 campus9 year_9 using data/onlynew`s'_2yrs.dta, keep( 3) nogen
save  data/0718_13_stuanalysisfile_onlynew`s'_2yrs.dta, replace
}

*do a version with only "new" "at-risk"
***Keep YEARS before turned on, and year it got turned on
foreach s in anyLP anyRorE {
use  data/0718_13_stuanalysisfile_fullpred.dta, clear
keep campus9 year_9 `s'
duplicates drop
reshape wide `s', i(campus9) j(year_9)

*no variation, can't keep
drop if `s'1995==1&`s'1996==1&`s'1997==1&`s'1998==1&`s'1999==1
drop if `s'1995==0&`s'1996==0&`s'1997==0&`s'1998==0&`s'1999==0
drop if `s'1995==1
keep if (`s'1995==0&`s'1996==1)|(`s'1996==0&`s'1997==1)|(`s'1997==0&`s'1998==1)|(`s'1998==0&`s'1999==1)

	*I'm sure there's a way to do this nice, but I'm going to hard code it
	foreach n of numlist 1997/1999{
		replace `s'`n'=. if  (`s'1995==0&`s'1996==1)
	}
	foreach n of numlist  1998/1999{
		replace `s'`n'=. if  (`s'1996==0&`s'1997==1&(`s'1995==0|`s'1995==.))
	}
	foreach n of numlist  1999{
		replace `s'`n'=. if  (`s'1997==0&`s'1998==1&((`s'1995==0|`s'1995==.)|(`s'1996==0|`s'1996==.)))
	}
	
reshape long `s', i(campus) j(year_9)

ren `s' `s'onlynew
save data/onlynew`s'.dta, replace

use  data/0718_13_stuanalysisfile_fullpred.dta, clear
*only keep matches so have a smaller data set
merge m:1 campus9 year_9 using data/onlynew`s'.dta, keep( 3) nogen
save  data/0718_13_stuanalysisfile_onlynew`s'.dta, replace
}

*do a version with event study
foreach s in anyLP anyRorE{
foreach f in avg fullpred {
use  data/0718_13_stuanalysisfile_`f'.dta, clear
keep campus9 year_9 `s'
duplicates drop
reshape wide `s', i(campus9) j(year_9)
drop if `s'1995==1&`s'1996==1&`s'1997==1&`s'1998==1&`s'1999==1
drop if `s'1995==0&`s'1996==0&`s'1997==0&`s'1998==0&`s'1999==0
g doneflag=.

foreach n of numlist 1995/1999{
	g new`s'`n'=`s'`n'
	}
*first in 1995
replace new`s'1995=0 if `s'1995==1
replace new`s'1996=1 if `s'1995==1
replace new`s'1997=2 if `s'1995==1
replace new`s'1998=3 if `s'1995==1
replace new`s'1999=4 if `s'1995==1
replace doneflag=1 if `s'1995==1

*first in 1996
replace new`s'1995=-1 if `s'1996==1&doneflag==.&(`s'1995==0|`s'1995==.)
replace new`s'1996=0 if `s'1996==1&doneflag==.&(`s'1995==0|`s'1995==.)
replace new`s'1997=1 if `s'1996==1&doneflag==.&(`s'1995==0|`s'1995==.)
replace new`s'1998=2 if `s'1996==1&doneflag==.&(`s'1995==0|`s'1995==.)
replace new`s'1999=3 if `s'1996==1&doneflag==.&(`s'1995==0|`s'1995==.)
replace doneflag=1  if `s'1996==1&(`s'1995==0|`s'1995==.)

*first in 1997
replace new`s'1995=-2 if `s'1997==1&doneflag==.&((`s'1995==0|`s'1995==.)&(`s'1996==0|`s'1996==.))
replace new`s'1996=-1 if `s'1997==1&doneflag==.&((`s'1995==0|`s'1995==.)&(`s'1996==0|`s'1996==.))
replace new`s'1997=0 if `s'1997==1&doneflag==.&((`s'1995==0|`s'1995==.)&(`s'1996==0|`s'1996==.))
replace new`s'1998=1 if `s'1997==1&doneflag==.&((`s'1995==0|`s'1995==.)&(`s'1996==0|`s'1996==.))
replace new`s'1999=2 if `s'1997==1&doneflag==.&((`s'1995==0|`s'1995==.)&(`s'1996==0|`s'1996==.))
replace doneflag=1  if `s'1997==1&((`s'1995==0|`s'1995==.)&(`s'1996==0|`s'1996==.))

*first in 1998
replace new`s'1995=-3 if `s'1998==1&doneflag==.&((`s'1997==0|`s'1997==.)&(`s'1995==0|`s'1995==.)&(`s'1996==0|`s'1996==.))
replace new`s'1996=-2 if `s'1998==1&doneflag==.&((`s'1997==0|`s'1997==.)&(`s'1995==0|`s'1995==.)&(`s'1996==0|`s'1996==.))
replace new`s'1997=-1 if `s'1998==1&doneflag==.&((`s'1997==0|`s'1997==.)&(`s'1995==0|`s'1995==.)&(`s'1996==0|`s'1996==.))
replace new`s'1998=0 if `s'1998==1&doneflag==.&((`s'1997==0|`s'1997==.)&(`s'1995==0|`s'1995==.)&(`s'1996==0|`s'1996==.))
replace new`s'1999=1 if `s'1998==1&doneflag==.&((`s'1997==0|`s'1997==.)&(`s'1995==0|`s'1995==.)&(`s'1996==0|`s'1996==.))
replace doneflag=1  if `s'1998==1&((`s'1997==0|`s'1997==.)&(`s'1995==0|`s'1995==.)&(`s'1996==0|`s'1996==.))

*first in 1999
replace new`s'1995=-4 if `s'1999==1&doneflag==.&((`s'1998==0|`s'1998==.)&(`s'1997==0|`s'1997==.)&(`s'1995==0|`s'1995==.)&(`s'1996==0|`s'1996==.))
replace new`s'1996=-3 if `s'1999==1&doneflag==.&((`s'1998==0|`s'1998==.)&(`s'1997==0|`s'1997==.)&(`s'1995==0|`s'1995==.)&(`s'1996==0|`s'1996==.))
replace new`s'1997=-2 if `s'1999==1&doneflag==.&((`s'1998==0|`s'1998==.)&(`s'1997==0|`s'1997==.)&(`s'1995==0|`s'1995==.)&(`s'1996==0|`s'1996==.))
replace new`s'1998=-1 if `s'1999==1&doneflag==.&((`s'1998==0|`s'1998==.)&(`s'1997==0|`s'1997==.)&(`s'1995==0|`s'1995==.)&(`s'1996==0|`s'1996==.))
replace new`s'1999=0 if `s'1999==1&doneflag==.&((`s'1998==0|`s'1998==.)&(`s'1997==0|`s'1997==.)&(`s'1995==0|`s'1995==.)&(`s'1996==0|`s'1996==.))
replace doneflag=1  if `s'1999==1&((`s'1998==0|`s'1998==.)&(`s'1997==0|`s'1997==.)&(`s'1995==0|`s'1995==.)&(`s'1996==0|`s'1996==.))

keep if doneflag==1

reshape long new`s', i(campus) j(year_9)

save data/eventstudy_`s'_`f'.dta, replace

use  data/0718_13_stuanalysisfile_`f'.dta, clear
*only keep matches so have a smaller data set
merge m:1 campus9 year_9 using data/eventstudy_`s'_`f'.dta, keep( 3) nogen

*generate dummies
g byte `s'_minus3more=(new`s'==-3|new`s'==-4)
g byte `s'_minus2=new`s'==-2
g byte `s'_minus1=new`s'==-1
g byte `s'_zero=new`s'==0
g byte `s'_plus1=new`s'==1
g byte `s'_plus2=new`s'==2
g byte `s'_plus3more=(new`s'==3|new`s'==4)

save  data/0718_13_stuanalysisfile_eventstudy_`s'_`f'.dta, replace
}

}

} // end part5 loop

***set up minimum pass rate file
if "$part6"=="1"{
global demog "black hisp frpl male"

*set up school means
use  campus9 year_9 $demog g8*raw g8*scale g8*pass using data/0718_13_stuanalysisfile.dta, clear
g all = 1

collapse (mean) $demog g8*raw g8*scale g8*pass  (sum) Nall = all , by(campus year_9 )
g missing_small_Nall = 0
replace missing_small_Nall=1 if Nall<30
foreach v of varlist $demog g8*raw g8*scale g8*pass {
	replace `v'=. if Nall<30
	}
order Nall missing
save data/tempall.dta, replace

foreach g in black hisp frpl{
use campus9 year_9 $demog g8*raw g8*scale g8*pass using data/0718_13_stuanalysisfile.dta, clear
keep if `g'==1
collapse (mean) $demog g8*raw g8*scale g8*pass  (sum) N`g' = `g' , by(campus year_9 )
g missing_small_N`g' = 0
replace missing_small_N`g'=1 if N`g'<30
foreach v of varlist $demog g8*raw g8*scale g8*pass {
	replace `v'=. if N`g'<30
	}
order N`g' missing
save data/temp`g'.dta, replace
}
use data/tempfrpl.dta, clear
append using data/tempblack.dta
append using data/temphisp.dta
append using data/tempall.dta

sort campus9 year_9
order Nall missing*Nall Nblack missing*Nblack Nhisp missing*hisp Nfrpl missing*frpl

foreach v of varlist Nall missing*Nall Nblack missing*Nblack Nhisp missing*hisp Nfrpl missing*frpl{
	bys campus9 year_9: egen min`v'=min(`v')
	bys campus9 year_9: replace `v'=min`v' if `v'==.
	drop min`v'
}
*if there is a subgroup less than 5, erase all N subgroups
replace Nblack=. if Nfrpl<=5
replace Nhisp=. if Nfrpl<=5
replace Nfrpl=. if Nfrpl<=5

replace Nblack=. if Nblack<=5
replace Nhisp=. if Nblack<=5
replace Nfrpl=. if Nblack<=5

replace Nblack=. if Nhisp<=5
replace Nhisp=. if Nhisp<=5
replace Nfrpl=. if Nhisp<=5

save data/means_by_subgroup8th.dta, replace
use data/means_by_subgroup8th.dta, clear
foreach var of varlist Nall Nblack Nhisp Nfrpl {
	replace `var'=0 if `var'==.
}
gen Nwhite=Nall-Nblack-Nhisp
gen missing_small_Nwhite=Nwhite<30
foreach var of varlist missing_small_Nall missing_small_Nwhite missing_small_Nblack missing_small_Nhisp missing_small_Nfrpl {
	replace `var'=1 if `var'==.
}
gen all=1 if black!=1 & frpl!=1 & hisp!=1 & black!=. & frpl!=. & hisp!=.
foreach x in g8wraw g8rraw g8mraw g8wscale g8rscale g8mscale g8mscale_pass g8rscale_pass g8wscale_pass {
	foreach y in all black hisp frpl {
		gen temp`x'_`y'=`x' if `y'==1
		bysort campus9 year_9: egen `x'_`y'=max(temp`x'_`y')
		drop temp`x'_`y'
	}
}
foreach x in g8wraw g8rraw g8mraw g8wscale g8rscale g8mscale g8mscale_pass g8rscale_pass g8wscale_pass {
	replace `x'_all=`x'_hisp if `x'_all==.
}
duplicates drop campus9 year_9, force
keep if year_9<=1999
order *N*
drop black- all
compress
save data/means_by_subgroup8th_noMISS.dta, replace

use data/0718_13_stuanalysisfile.dta, clear

merge m:1 campus9 year_9 using data/means_by_subgroup8th_noMISS.dta, keep(master match) keepusing(g8mscale_pass_all g8mscale_pass_black g8mscale_pass_hisp g8mscale_pass_frpl g8rscale_pass_all g8rscale_pass_black g8rscale_pass_hisp g8rscale_pass_frpl g8wscale_pass_all g8wscale_pass_black g8wscale_pass_hisp g8wscale_pass_frpl)
drop _merge
egen min_pass8=rowmin( g8mscale_pass_all g8mscale_pass_black g8mscale_pass_hisp g8mscale_pass_frpl g8rscale_pass_all g8rscale_pass_black g8rscale_pass_hisp g8rscale_pass_frpl g8wscale_pass_all g8wscale_pass_black g8wscale_pass_hisp g8wscale_pass_frpl)
gen threshold8=.
replace threshold8=min_pass8-0.3 if year_9==1995
replace threshold8=min_pass8-0.35 if year_9==1996
replace threshold8=min_pass8-0.4 if year_9==1997
replace threshold8=min_pass8-0.45 if year_9==1998
replace threshold8=min_pass8-0.5 if year_9==1999
gen threshold8_neg10=threshold8<=-0.1 & threshold8!=.
gen threshold8_neg5to10=threshold8>-0.1 & threshold8<=-0.05
gen threshold8_neg0to5=threshold8>-0.05 & threshold8<=0
gen threshold8_pos0to5=threshold8>0 & threshold8<=0.05
gen threshold8_pos5to10=threshold8>0.05 & threshold8<=0.1
gen threshold8_pos10to15=threshold8>0.10 & threshold8<=0.15
gen threshold8_pos25to30=threshold8>0.25 & threshold8<=0.30
gen threshold8_pos30to35=threshold8>0.30 & threshold8<=0.35
gen threshold8_pos35to40=threshold8>0.35 & threshold8<=0.40
gen threshold8_pos40plus=threshold8>0.4 & threshold8!=.
foreach var of varlist threshold8_neg10- threshold8_pos40plus {
	replace `var'=. if threshold8==.
}
gen threshold8_pos15to25=threshold8>0.15 & threshold8<=0.25
replace threshold8_pos15to25=. if threshold8==.
gen min8_under10=min_pass8<=0.1 & min_pass8!=.
gen min8_10to15=min_pass8>0.1 & min_pass8<=0.15
gen min8_15to20=min_pass8>0.15 & min_pass8<=0.2
gen min8_20to25=min_pass8>0.2 & min_pass8<=0.25
gen min8_25to30=min_pass8>0.25 & min_pass8<=0.3
gen min8_30to35=min_pass8>0.3 & min_pass8<=0.35
gen min8_35to40=min_pass8>0.35 & min_pass8<=0.4
gen min8_40to45=min_pass8>0.4 & min_pass8<=0.45
gen min8_45to50=min_pass8>0.45 & min_pass8<=0.5
gen min8_60to65=min_pass8>0.6 & min_pass8<=0.65
gen min8_65to70=min_pass8>0.65 & min_pass8<=0.7
gen min8_70to75=min_pass8>0.7 & min_pass8<=0.75
gen min8_75to80=min_pass8>0.75 & min_pass8<=0.8
gen min8_80to85=min_pass8>0.8 & min_pass8<=0.85
gen min8_85to90=min_pass8>0.85 & min_pass8<=0.9
gen min8_over90=min_pass8>0.9 & min_pass8!=.
foreach var of varlist min8_under10- min8_over90 {
	replace `var'=. if min_pass8==.
}



save data/0718_13_stuanalysisfile_minpass.dta, replace


}



} // end setup loop

if "$analysisAug2013" == "1" {


**********************************************************************************
**********************************************************************************
** THIS FILES CREATES THE TABLES (OR DATA FOR TABLES/FIGS)
** THAT MATCH TO THE 8/21/2013 version
**
**
**********************************************************************************
**********************************************************************************

**********SWITCHES***********

***MAIN TABLES
global descriptives 0 // table 1
global main 1 // tables 2-4 main models
global schXcohort 1 // school by cohort
global avg  1 // main model on average cohort
global compile_main 0 // compile above tables

***APPENDIX
global apdx_moreout 0 // more outcomes, main model
global apdx_basic 0 // lots of spec checks, comparison to other predictions
global teach 0 // teachers regs
global groups 0 // interactions by border, urban, frpl, lep
global trends 0 // add 1994-1991 trend to model
global compile_apdx 0 // compile main appendix results
global earnimp 0 // earnings imputed outcomes
global misc_apdx 0 // transition matrix, predictions etc
global fig_earn_idle 0 // figure with earn, idle, in school
global fig_minpass 0 // minpass figure
global g7_check 0 // spec check with 7th grade scores as outcomes


*****MAIN RESULTS******

*descriptives Table 1
if "$descriptives"=="1"{
use  data\0718_13_stuanalysisfile_fullpred.dta, clear

rename coll4yr_flagship_in8 coll4yr_flag_in8
rename sems_enroll4yr25 sems_4yr25
rename earn23_24_25_zeroes earn23to25_zero
rename still_enrolled_coll25 still_coll25
g byte all=1
global baseline_charac "white black hisp frpl esl speced male g8mscale g8mscale_pass g8rscale g8rscale_pass"
global hs_out "g10mscale g10mscale_pass g10rscale g10rscale_pass g10take_m m_attempt m_ever_pass absentT1 newspedT1 sameschT1 sameschT1ontime TXinT1 alt_new_ever totcred_math pass_alg1 pass_geom pass_alg2 pass_precalc hsgrad_in8"
global l8r_out " anycoll_in8 coll2yr_in8 coll4yr_in8 coll4yr_flag_in8 sems_4yr25 AA BA earn23_zeroes earn24_zeroes earn25_zeroes earn23to25_zero earn_noschl25 idle25 still_coll25 idle_all"

*storage matrix
mat table1=J(47,7,.)
local row =1
local col =1

* BY STUDENT CHARACTERISTICS AND COHORTS
foreach g in all white black hisp frpl g8_pass g8_fail {
		qui su male if `g'==1
			local N`g'=r(N)
	foreach d of varlist $baseline_charac $hs_out $l8r_out {
		if "`d'"=="earn25" {
			qui su `d' if `g'==1 , detail
				local mean`g'_`d'=r(p50)
		}
		else if "`d'"!="earn25" {
			qui su `d' if `g'==1 , detail
				local mean`g'_`d'=r(mean)
		}
		*place into matrix
		mat table1[`row',`col'] = `mean`g'_`d''
		local++ row
	} //next outcome (row)
	local++ row
	mat table1[`row',`col'] = `N`g''
	
local++ col
local row=1
} //next group (col)

mat list table1
clear
svmat table1
outsheet using output\to_ferpa\table1_part1.csv, comma replace
}
*Main results, Tables 2-4*
if "$main"=="1"{
use  data\0718_13_stuanalysisfile_fullpred.dta, clear

foreach o of global outcomes_tables_short {
	*with school FE
		areg `o' $xtest_raw  $demog year9dum* anyLP anyRorE, absorb(campus9) cluster(campus9) vce(bootstrap)	
		parmest, stars(0.05 0.01) es(N) saving(output\simpleFE_main_`o'.dta, replace)
		}
		
foreach o of global outcomes_tables_short {
	*with school FE
		areg `o' $xtest_raw  $demog year9dum* anyLP_fail anyLP_pass anyRorE_fail anyRorE_pass g8_pass, absorb(campus9) cluster(campus9) vce(bootstrap)	
		parmest, stars(0.05 0.01) es(N) saving(output\math8FE_main_`o'.dta, replace)
		}

*Now do results by tercile of prediction*
foreach o of global outcomes_tables_short {
	*with school FE
		areg `o' $xtest_raw  $demog year9dum* anyLP_lowschl anyLP_midschl anyLP_highschl anyRorE_lowschl anyRorE_midschl anyRorE_highschl, absorb(campus9) cluster(campus9) vce(bootstrap)	
		parmest, stars(0.05 0.01) es(N) saving(output\simpleFE_terc_`o'.dta, replace)
		}
}
*school-cohort models*
if "$schXcohort"=="1"{
use  data\0718_13_stuanalysisfile_fullpred.dta, clear

foreach o of global outcomes_tables_short {
	areg `o' classrank g8mraw g8rraw g8wraw g8mraw_sq g8mraw_cub g8rraw_sq g8rraw_cub g8wraw_sq g8wraw_cub black hisp frpl male year9dum* black_pass hisp_pass white_pass frpl_pass target_pass anyLP_target_fail anyRorE_target_fail if always_white_only!=1, absorb(schXcohort) cluster(campus9) vce(bootstrap)
	parmest, stars(0.05 0.01) es(N) saving(output\math8FE_schcohort_`o'.dta, replace)
}
}				
*Average across cohorts* Table A10
if "$avg"=="1"{
use data\0718_13_stuanalysisfile_avg.dta, replace

foreach o of global outcomes_tables_short {
	*with school FE
		areg `o' $xtest_raw  $demog year9dum* anyLP anyRorE, absorb(campus9) cluster(campus9) vce(bootstrap)	
		parmest, stars(0.05 0.01) es(N) saving(output\simpleFE_avg_`o'.dta, replace)
		}
foreach o of global outcomes_tables_short {
	*with school FE
		areg `o' $xtest_raw  $demog year9dum* anyLP_fail anyLP_pass anyRorE_fail anyRorE_pass g8_pass, absorb(campus9) cluster(campus9) vce(bootstrap)	
		parmest, stars(0.05 0.01) es(N) saving(output\math8FE_avg_`o'.dta, replace)
		}
}
*Compile main table results*	
if "$compile_main"=="1"{	



*compile new outcomes 11.5.2014
global outcomes_tables_short "g10mscale g10mz  coll4yr"
global next_tables_short " g10mz  coll4yr"



use output\simpleFE_main_g10mscale.dta, clear
	gen outcome = "g10mscale"
		foreach next of global next_tables_short {
			append using output\simpleFE_main_`next'.dta
			replace outcome = "`next'" if outcome==""
		}
	ren es_1 N
	g model = "Main results"
	g filename = "simpleFE_main"
	save output\simpleFE_main.dta, replace
use output\math8FE_main_g10mscale.dta, clear
	gen outcome = "g10mscale"
		foreach next of global next_tables_short {
			append using output\math8FE_main_`next'.dta
			replace outcome = "`next'" if outcome==""
		}
	ren es_1 N
	g model = "Main results, Prior Pass"
	g filename = "math8FE_main"
	save output\math8FE_main.dta, replace
use output\simpleFE_terc_g10mscale.dta, clear
	gen outcome = "g10mscale"
		foreach next of global next_tables_short {
			append using output\simpleFE_terc_`next'.dta
			replace outcome = "`next'" if outcome==""
		}
	ren es_1 N
	g model = "Main results, Terciles"
	g filename = "simpleFE_terc"
	save output\simpleFE_terc.dta, replace

use output\math8FE_schcohort_g10mscale.dta, clear
	gen outcome = "g10mscale"
		foreach next of global next_tables_short {
			append using output\math8FE_schcohort_`next'.dta
			replace outcome = "`next'" if outcome==""
		}
	ren es_1 N
	g filename = "math8FE_schcohort"
	g model = "School cohort, Prior Pass"
	save output\math8FE_schcohort.dta, replace
	
use output\simpleFE_avg_g10mscale.dta, clear
	gen outcome = "g10mscale"
		foreach next of global next_tables_short {
			append using output\simpleFE_avg_`next'.dta
			replace outcome = "`next'" if outcome==""
		}
	ren es_1 N
	g filename = "simpleFE_avg"
	g model = "Main results, averaged prediction"
	save output\simpleFE_avg.dta, replace

use output\math8FE_avg_g10mscale.dta, clear
	gen outcome = "g10mscale"
		foreach next of global next_tables_short {
			append using output\math8FE_avg_`next'.dta
			replace outcome = "`next'" if outcome==""
		}
	ren es_1 N
	g filename = "math8FE_avg"
	g model = "Prior pass interactions, averaged prediction"
	save output\math8FE_avg.dta, replace
	
	use output\simpleFE_main.dta, clear
		append using output\math8FE_main.dta
		append using output\simpleFE_terc.dta
		append using output\math8FE_schcohort.dta
		append using output\simpleFE_avg.dta
		append using output\math8FE_avg.dta
	
		save output\to_ferpa\main_results_11_5_2015.dta, replace

}



*****APPENDIX RESULTS******

*Appendix table with additional outcomes, specification same*
if "$apdx_moreout"=="1"{
use  data\0718_13_stuanalysisfile_fullpred.dta, clear
foreach o of global outcomes_appendix {
	*with school FE
		areg `o' $xtest_raw  $demog year9dum* anyLP anyRorE, absorb(campus9) cluster(campus9) vce(bootstrap)	
		parmest, stars(0.05 0.01) es(N) saving(output\simpleFE_addout_`o'.dta, replace)
		}
foreach o of global outcomes_appendix {
	*with school FE
		areg `o' $xtest_raw  $demog year9dum* anyLP_fail anyLP_pass anyRorE_fail anyRorE_pass g8_pass, absorb(campus9) cluster(campus9) vce(bootstrap)	
		parmest, stars(0.05 0.01) es(N) saving(output\math8FE_addout_`o'.dta, replace)
		}
}
*Appendix Tables with alternative specifications*

*Beginning with basic prediction model - no RI, no demogs/trends*
if "$apdx_basic"=="1"{	
use  data\0718_13_stuanalysisfile.dta, clear

*main
foreach o of global outcomes_tables_short {
	*with school FE
		areg `o' $xtest_raw  $demog year9dum* anyLP anyRorE, absorb(campus9) cluster(campus9) vce(bootstrap)	
		parmest, stars(0.05 0.01) es(N) saving(output\simpleFE_basic_`o'.dta, replace)
	*with school FE
		areg `o' $xtest_raw  $demog year9dum* anyLP_fail anyLP_pass anyRorE_fail anyRorE_pass g8_pass, absorb(campus9) cluster(campus9) vce(bootstrap)	
		parmest, stars(0.05 0.01) es(N) saving(output\math8FE_basic_`o'.dta, replace)
		}
*no school fe
foreach o of global outcomes_tables_short {
	*no school FE
		reg `o' $xtest_raw  $demog year9dum* anyLP anyRorE,  cluster(campus9) vce(bootstrap)	
		parmest, stars(0.05 0.01) es(N) saving(output\simpleFE_noFE_`o'.dta, replace)

	*no school FE
		reg `o' $xtest_raw  $demog year9dum* anyLP_fail anyLP_pass anyRorE_fail anyRorE_pass g8_pass,  cluster(campus9) vce(bootstrap)	
		parmest, stars(0.05 0.01) es(N) saving(output\math8FE_noFE_`o'.dta, replace)
		}
*nonconsecutive
foreach o of global outcomes_tables_short {
	*with school FE
		areg `o' $xtest_raw  $demog year9dum* anyLP anyRorE if year_9!=1996 & year_9!=1998, absorb(campus9) cluster(campus9) vce(bootstrap)	
		parmest, stars(0.05 0.01) es(N) saving(output\simpleFE_nonconsec_`o'.dta, replace)

	*with school FE
		areg `o' $xtest_raw  $demog year9dum* anyLP_fail anyLP_pass anyRorE_fail anyRorE_pass g8_pass if year_9!=1996 & year_9!=1997 & year_9!=1998, absorb(campus9) cluster(campus9) vce(bootstrap)	
		parmest, stars(0.05 0.01) es(N) saving(output\math8FE_nonconsec_`o'.dta, replace)
		}
*nooverlap
foreach o of global outcomes_tables_short {
	*with school FE
		areg `o' $xtest_raw  $demog year9dum* anyLP anyRorE if year_9!=1996 & year_9!=1998, absorb(campus9) cluster(campus9) vce(bootstrap)	
		parmest, stars(0.05 0.01) es(N) saving(output\simpleFE_nooverlap_`o'.dta, replace)

	*with school FE
		areg `o' $xtest_raw  $demog year9dum* anyLP_fail anyLP_pass anyRorE_fail anyRorE_pass g8_pass if year_9!=1996 & year_9!=1997 & year_9!=1998, absorb(campus9) cluster(campus9) vce(bootstrap)	
		parmest, stars(0.05 0.01) es(N) saving(output\math8FE_nooverlap_`o'.dta, replace)
		}

merge m:1 campus9 year_9 using data\speccheck_vars_May2013.dta, keep(master match) nogen

foreach o of global outcomes_tables_short {
	*with school FE
		areg `o' $xtest_raw  $demog year9dum* anyLP anyRorE if no_switch==0, absorb(campus9) cluster(campus9) vce(bootstrap)	
		parmest, stars(0.05 0.01) es(N) saving(output\simpleFE_switch_`o'.dta, replace)

	*with school FE
		areg `o' $xtest_raw  $demog year9dum* anyLP_fail anyLP_pass anyRorE_fail anyRorE_pass g8_pass if no_switch==0, absorb(campus9) cluster(campus9) vce(bootstrap)	
		parmest, stars(0.05 0.01) es(N) saving(output\math8FE_switch_`o'.dta, replace)
		}

foreach o of global outcomes_tables_short {
	*with school FE
		areg `o' $xtest_raw  $demog year9dum* anyLP anyRorE if same_groups==1, absorb(campus9) cluster(campus9) vce(bootstrap)	
		parmest, stars(0.05 0.01) es(N) saving(output\simpleFE_samegrp_`o'.dta, replace)

	*with school FE
		areg `o' $xtest_raw  $demog year9dum* anyLP_fail anyLP_pass anyRorE_fail anyRorE_pass g8_pass if same_groups==1, absorb(campus9) cluster(campus9) vce(bootstrap)	
		parmest, stars(0.05 0.01) es(N) saving(output\math8FE_samegrp_`o'.dta, replace)
		}
}

*Teacher staffing results*
if "$teach"=="1"{
merge m:1 campus9 year_9 using data\0521_13_tchpanel.dta, keep(match master) nogen
global outcomes_teach "fte fte_reg fte_speced fte_remed"

foreach o of global outcomes_teach {

*tcher  Model SIMPLE
	areg `o' $xtest_raw $demog year9dum* anyLP anyRorE , absorb(campus9) cluster(campus9) vce(bootstrap)
		parmest, stars(0.05 0.01) es(N) saving(output\tch_simple_`o'.dta, replace)
*3 category Model 
	areg `o' $xtest_raw $demog year9dum* anyLP_lowschl anyLP_midschl anyLP_highschl anyRorE_lowschl anyRorE_midschl anyRorE_highschl, absorb(campus9) cluster(campus9) vce(bootstrap)
		parmest, stars(0.05 0.01) es(N) saving(output\tch_terc_`o'.dta, replace)
}

foreach o of global outcomes_teach {

*non-overlapping*
	areg `o' $xtest_raw $demog year9dum* anyLP anyRorE if year_9!=1996 & year_9!=1998, absorb(campus9) cluster(campus9) vce(bootstrap)
		parmest, stars(0.05 0.01) es(N) saving(output\tch_simple_nonconsec_`o'.dta, replace)

*non-overlapping, 3 categories*
	areg `o' $xtest_raw $demog year9dum* anyLP_lowschl anyLP_midschl anyLP_highschl anyRorE_lowschl anyRorE_midschl anyRorE_highschl if year_9!=1996 & year_9!=1998, absorb(campus9) cluster(campus9) vce(bootstrap)
		parmest, stars(0.05 0.01) es(N) saving(output\tch_terc_nonconsec_`o'.dta, replace)
	}
}
	
*Cuts by border town, urbanicity, esl and gender*
if "$groups"=="1"{
use  data\0718_13_stuanalysisfile_fullpred.dta, clear

foreach g in border male urb lep {
	foreach o of global outcomes_tables_short {
	*with school FE
		areg `o' $xtest_raw  $demog year9dum* `g' anyLP anyLP_`g' anyRorE anyRorE_`g', absorb(campus9) cluster(campus9) vce(bootstrap)	
		parmest, stars(0.05 0.01) es(N) saving(output\simpleFE_`g'_`o'.dta, replace)
		}
	}
}

*add trend data to main regs*
if "$trends"=="1"{
use  data\0718_13_stuanalysisfile_fullpred.dta, clear
merge m:1  campus9 using data\testtrends.dta, keep(master match) nogen
*Clean for missing values in pre-trend data*

foreach var of varlist taas_11r_e1991- g10wscale_pass_w1994 {
	gen `var'_miss=`var'==.
	replace `var'=0 if `var'_miss==1
}
gen trend=1 if year_9==1995
replace trend=2 if year_9==1996
replace trend=3 if year_9==1997
replace trend=4 if year_9==1998
replace trend=5 if year_9==1999
*Linear trend in 1994 pass rates, overall and by group*
foreach g in a b h e {
	gen g10mscale_pass_`g'1994_trend= g10mscale_pass_`g'1994*trend
}
*Trends in difference between 1994 and earlier years*
foreach g in a b h e {
	foreach t in 1 2 3 {
		gen mathdiff_`g'`t'= g10mscale_pass_`g'1994- taas_11m_`g'199`t'
	}
}
foreach g in a b h e {
	foreach t in 1 2 3 {
		gen mathdiff_`g'`t'_trend=mathdiff_`g'`t'*trend
	}
}


foreach o of global outcomes_tables_short {
	*with school FE
		areg `o' $xtest_raw  $demog year9dum* anyLP anyRorE *trend, absorb(campus9) cluster(campus9) vce(bootstrap)	
		parmest, stars(0.05 0.01) es(N) saving(simpleFE_trend_`o'.dta, replace)

	*with school FE
		areg `o' $xtest_raw  $demog year9dum* anyLP_fail anyLP_pass anyRorE_fail anyRorE_pass g8_pass *trend, absorb(campus9) cluster(campus9) vce(bootstrap)	
		parmest, stars(0.05 0.01) es(N) saving(math8FE_trend_`o'.dta, replace)
		}
}
	
	
*Compile Appendix Tables*	
if "$compile_apdx"=="1"{


use simpleFE_addout_g10rscale.dta, clear
	gen outcome = "g10rscale"
		foreach next of global next_tables_short {
			append using simpleFE_addout_`next'.dta
			replace outcome = "`next'" if outcome==""
		}
	ren es_1 N
	g model = "Main results"
	g filename = "simpleFE_addout"
	save output\simpleFE_addout.dta, replace
use math8FE_addout_g10rscale.dta, clear
	gen outcome = "g10rscale"
		foreach next of global next_tables_short {
			append using math8FE_addout_`next'.dta
			replace outcome = "`next'" if outcome==""
		}
	ren es_1 N
	g model = "Main results, prior pass interactions"
	g filename = "math8FE_addout"
	save output\math8FE_addout.dta, replace

foreach c in basic noFE nonconsec nooverlap switch samegrp trend border male urb lep {
	use simpleFE_`c'_g10mscale_pass.dta, clear
		gen outcome = "g10mscale_pass"
			foreach next of global next_tables_short {
				append using simpleFE_`c'_`next'.dta
				replace outcome = "`next'" if outcome==""
			}
		ren es_1 N
	g model = "Main results, robustness check: `c' "
	g filename = "simpleFE_`c'."
		save output\simpleFE_`c'.dta, replace
	}
foreach c in basic noFE nonconsec nooverlap switch samegrp trend {
	use math8FE_`c'_g10mscale_pass.dta, clear
		gen outcome = "g10mscale_pass"
			foreach next of global next_tables_short {
				append using math8FE_`c'_`next'.dta
				replace outcome = "`next'" if outcome==""
			}
		ren es_1 N
	g model = "Prior pass interactions results, robustness check: `c' "
	g filename = "math8FE_`c'."
		save output\math8FE_`c'.dta, replace
	}
	

	use output\simpleFE_addout.dta, clear
		append using output\math8FE_addout.dta
foreach c in basic noFE nonconsec nooverlap switch samegrp trend border male urb lep {
		append using output\simpleFE_`c'.dta
		}
foreach c in basic noFE nonconsec nooverlap switch samegrp trend {
		append using output\math8FE_`c'.dta
		}
		
		save output\to_ferpa\most_appendix_results_11_5_2015.dta, replace

	
/*
use tch_simple_fte.dta, clear
	gen outcome = "fte"
		foreach next of global next_teach {
			append using tch_simple_`next'.dta
			replace outcome = "`next'" if outcome==""
		}
	ren es_1 N
	save output\tch_simple.dta, replace
use tch_terc_fte.dta, clear
	gen outcome = "fte"
		foreach next of global next_teach {
			append using tch_terc_`next'.dta
			replace outcome = "`next'" if outcome==""
		}
	ren es_1 N
	save output\tch_terc.dta, replace
use tch_simple_nonconsec_fte.dta, clear
	gen outcome = "fte"
		foreach next of global next_teach {
			append using tch_simple_nonconsec_`next'.dta
			replace outcome = "`next'" if outcome==""
		}
	ren es_1 N
	save output\tch_simple_nonconsec.dta, replace
use tch_terc_nonconsec_fte.dta, clear
	gen outcome = "fte"
		foreach next of global next_teach {
			append using tch_terc_nonconsec_`next'.dta
			replace outcome = "`next'" if outcome==""
		}
	ren es_1 N
	save output\tch_terc_nonconsec.dta, replace
	*/
}	

*Earnings imputations*
if "$earnimp"=="1"{
use  data\0718_13_stuanalysisfile.dta, clear

global outcomes_earnimp "earn25 earn25_mean_4miss earn25_sdplus1_4miss earn25_sdminus1_4miss earn25_sdplushalf_4miss earn25_sdminushalf_4miss earn25_zero_4miss"
foreach o of global outcomes_earnimp {
	*with school FE
		areg `o' $xtest_raw  $demog year9dum* anyLP anyRorE, absorb(campus9) cluster(campus9) vce(bootstrap)	
		parmest, stars(0.05 0.01) es(N) saving(output\simpleFE_imp_`o'.dta, replace)

	*with school FE
		areg `o' $xtest_raw  $demog year9dum* anyLP_fail anyLP_pass anyRorE_fail anyRorE_pass g8_pass, absorb(campus9) cluster(campus9) vce(bootstrap)	
		parmest, stars(0.05 0.01) es(N) saving(output\math8FE_imp_`o'.dta, replace)
		}

*Compile*	
global next_earnimp "earn25_mean_4miss earn25_sdplus1_4miss earn25_sdminus1_4miss earn25_sdplushalf_4miss earn25_sdminushalf_4miss earn25_zero_4miss"
use simpleFE_imp_earn25.dta, clear
	gen outcome = "earn25"
		foreach next of global next_earnimp {
			append using simpleFE_imp_`next'.dta
			replace outcome = "`next'" if outcome==""
		}
	ren es_1 N
	save output\to_ferpa\simpleFE_imp.dta, replace
use math8FE_imp_earn25.dta, clear
	gen outcome = "earn25"
		foreach next of global next_earnimp {
			append using math8FE_imp_`next'.dta
			replace outcome = "`next'" if outcome==""
		}
	ren es_1 N
	save output\to_ferpa\math8FE_imp.dta, replace
	}


*compare predicted and actual ratings - Table A1*
*Transition Matrices - Table A2*
if "$misc_apdx"=="1"{
*first get actual ratings*
use "O:\projects\LTSO\Maya\Maya\AEIS_and_outcomes.dta, clear
keep campus year off_rate_cons
rename campus campus9
rename year year_9
save "O:\projects\LTSO\Sarah\data\off_ratings.dta, replace

use  data\0718_13_stuanalysisfile_fullpred.dta, clear
gen schtype=1 if highLP==1
replace schtype=2 if midLP==1
replace schtype=3 if lowLP==1
replace schtype=5 if lowRorE==1
replace schtype=6 if midRorE==1
replace schtype=7 if highRorE==1
replace schtype=4 if anyLP==0 & anyRorE==0
keep campus9 year_9 schtype
duplicates drop year_9 campus9 schtype, force
merge 1:1 campus9 year_9 using "O:\projects\LTSO\Sarah\data\off_ratings.dta, keep(master match) nogen
gen rateLP=off_rate_cons=="L"
gen rateA=off_rate_cons=="A"
gen rateRorE= off_rate_cons=="R" | off_rate_cons=="E"
log using output\TableA1_ratings.txt, text replace
tabstat rateLP rateA rateRorE, by(schtype)
cap log close

xtset campus9 year_9
label values schtype schtype
log using output\TableA2_matrices.txt, text replace
foreach n of numlist 1995/1999{
	local n1=`n'+1
	di "`n' (row) to `n1' (col) transition matrix
	xttrans schtype if year_9==`n'|year_9==`n1', freq
	}
cap log close

*descriptives by school type, Table A1
/*
use data\0718_13_stuanalysisfile.dta, clear
preserve
	collapse (mean) p_roundA  p_roundLP p_roundRorE black hisp frpl g8mscale g8rscale g8mscale_pass g8rscale_p (count) Nall=ssnrep, by(campus9 year_9 )
	save data\temp_sch_level.dta, replace
restore 
preserve
	keep if black==1
	collapse (mean) g8mscale_pass_black= g8mscale_pass  (count) Nblack=ssnrep, by(campus9 year_9 )
	save data\temp_sch_level_black.dta, replace
restore
preserve
	keep if hisp==1
	collapse (mean) g8mscale_pass_hisp= g8mscale_pass  (count) Nhisp=ssnrep, by(campus9 year_9 )
	save data\temp_sch_level_hisp.dta, replace
restore
	keep if frpl==1
	collapse (mean) g8mscale_pass_frpl= g8mscale_pass  (count) Nfrpl=ssnrep, by(campus9 year_9 )
	save data\temp_sch_level_frpl.dta, replace

use data\temp_sch_level.dta, replace
merge 1:1 campus9 year_9 using data\temp_sch_level_black.dta, keep(match master) nogen
merge 1:1 campus9 year_9 using data\temp_sch_level_hisp.dta, keep(match master) nogen
merge 1:1 campus9 year_9 using data\temp_sch_level_frpl.dta, keep(match master) nogen
save data\sch_level.dta, replace
*/
use data\sch_level.dta, clear

g byte safeA=p_roundA==100
drop if year_9>1999
gen anyLP= p_roundLP>0 & p_roundLP!=.
forvalues y=1995(1)1999 {
	gen temp`y'=anyLP==1 & year_9==`y'
	bysort campus9: egen anyLP`y'=max(temp`y')
	drop temp`y'
}
gen anyRorE= p_roundRorE>0 & p_roundRorE!=.
forvalues y=1995(1)1999 {
	gen temp`y'=anyRorE==1 & year_9==`y'
	bysort campus9: egen anyRorE`y'=max(temp`y')
	drop temp`y'
}

bysort campus9: egen always_LP=min(anyLP)
bysort campus9: egen ever_LP=max(anyLP)
bysort campus9: egen always_safeA=min(safeA)
bysort campus9: egen ever_RorE=max(anyRorE)
bysort campus9: egen always_RorE=min(anyRorE)

*Make categories mutually exclusive - always trumps ever*
replace ever_LP=0 if always_LP==1
replace ever_RorE=0 if always_LP==1
replace ever_RorE=0 if always_RorE==1
replace ever_LP=0 if always_RorE==1

*One weird case*
replace always_RorE=0 if always_LP==1

*Now resolve ever_LP and ever_RorE (but not always) by summing up the total probabilities across years and choosing the larger one*
bysort campus9: egen num_LP=total( p_roundLP)
bysort campus9: egen num_RorE=total( p_roundRorE)
replace ever_LP=0 if ever_LP==1 & ever_RorE==1 & num_LP<num_RorE
replace ever_RorE=0 if ever_LP==1 & ever_RorE==1 & num_LP>num_RorE
*Break tie based on number of times rather than total sum*
bysort campus9: egen count_LP=total( anyLP)
bysort campus9: egen count_RorE=total(anyRorE)
replace ever_LP=0 if ever_LP==1 & ever_RorE==1 & num_LP==num_RorE & count_LP<count_RorE
replace ever_RorE=0 if ever_LP==1 & ever_RorE==1 & num_LP==num_RorE & count_LP>count_RorE
*10 cases where everthing is equal - put them in safe A category*
replace always_safeA=1 if ever_LP==1 & ever_RorE==1 & num_LP==num_RorE & count_LP==count_RorE
replace ever_LP=0 if always_safeA==1 & num_LP==num_RorE & count_LP==count_RorE
replace ever_RorE=0 if always_safeA==1 & num_LP==num_RorE & count_LP==count_RorE
*Now categories are mutually exclusive - descriptive stats for Table 2*

gen schoolcat=1 if always_LP==1
replace schoolcat=2 if ever_LP==1
replace schoolcat=3 if always_safeA==1
replace schoolcat=4 if ever_RorE==1
replace schoolcat=5 if always_RorE==1


foreach v of varlist black hisp frpl{
	g ratio_`v'=N`v'/Nall
	g missing_small_N`v'=0
	replace missing_small_N`v'=1 if N`v'<=30
	replace missing_small_N`v'=1 if ratio_`v'<=.1
}
*one entry per school
*collapse black hisp frpl g8mscale g8rscale g8mscale_pass g8rscale_pass Nall g8mscale_pass_black g8mscale_pass_hisp g8mscale_pass_frpl missing_small_Nblack missing_small_Nhisp missing_small_Nfrpl, by(schoolcat campus9)


log using output/table2_log.txt, text replace
di "Summary Statistics by school category -- first version of tables includes N's"
tabstat black hisp frpl g8mscale g8rscale g8mscale_pass g8rscale_pass Nall, by(schoolcat) s(mean count)
tabstat g8mscale_pass_black g8mscale_pass_hisp g8mscale_pass_frpl missing_small_Nblack missing_small_Nhisp missing_small_Nfrpl, by(schoolcat) s(mean count)

*Table A1*
tabstat black hisp frpl  g8mscale_pass g8rscale_pass, by(schoolcat) s(mean)
tabstat Nall, by(schoolcat) s(sum count)
tabstat g8mscale_pass_black g8mscale_pass_hisp g8mscale_pass_frpl missing_small_Nblack missing_small_Nhisp missing_small_Nfrpl, by(schoolcat) s(mean)
cap log close

*Sample selection - determinants of LP rating - Tables A3 and A4*

*need some extra data
use O:\projects\LTSO\Maya\Maya\AEIS_and_outcomes.dta , clear
keep campus year change_princ mean_tenure mean_teachpay
ren campus campus9
ren year year_9
replace year_9=year_9-1
keep if year>=1997&year<=1999
drop if chang==.&mean_ten==.&mean_teach==.
save "$data\extra_vars.dta, replace

use "$data\means_by_subgroup8th.dta, clear
foreach var of varlist Nall Nblack Nhisp Nfrpl {
	replace `var'=0 if `var'==.
}
gen Nwhite=Nall-Nblack-Nhisp
gen missing_small_Nwhite=Nwhite<30
foreach var of varlist missing_small_Nall missing_small_Nwhite missing_small_Nblack missing_small_Nhisp missing_small_Nfrpl {
	replace `var'=1 if `var'==.
}
gen all=1 if black!=1 & frpl!=1 & hisp!=1 & black!=. & frpl!=. & hisp!=.
foreach x in g8wraw g8rraw g8mraw g8wscale g8rscale g8mscale g8mscale_pass g8rscale_pass g8wscale_pass {
	foreach y in all black hisp frpl {
		gen temp`x'_`y'=`x' if `y'==1
		bysort campus9 year_9: egen `x'_`y'=max(temp`x'_`y')
		drop temp`x'_`y'
	}
}
foreach x in g8wraw g8rraw g8mraw g8wscale g8rscale g8mscale g8mscale_pass g8rscale_pass g8wscale_pass {
	replace `x'_all=`x'_hisp if `x'_all==.
}
duplicates drop campus9 year_9, force
keep if year_9<=1999
order *N*
drop black- all
compress
save "$data\means_by_subgroup8th_noMISS.dta, replace

use "$data\sch_level.dta, clear

g byte safeA=p_roundA==100
drop if year_9>1999
gen anyLP= p_roundLP>0 & p_roundLP!=.
forvalues y=1995(1)1999 {
	gen temp`y'=anyLP==1 & year_9==`y'
	bysort campus9: egen anyLP`y'=max(temp`y')
	drop temp`y'
}
gen anyRorE= p_roundRorE>0 & p_roundRorE!=.
forvalues y=1995(1)1999 {
	gen temp`y'=anyRorE==1 & year_9==`y'
	bysort campus9: egen anyRorE`y'=max(temp`y')
	drop temp`y'
}

bysort campus9: egen always_LP=min(anyLP)
bysort campus9: egen ever_LP=max(anyLP)
bysort campus9: egen always_safeA=min(safeA)
bysort campus9: egen ever_RorE=max(anyRorE)
bysort campus9: egen always_RorE=min(anyRorE)

*Make categories mutually exclusive - always trumps ever*
replace ever_LP=0 if always_LP==1
replace ever_RorE=0 if always_LP==1
replace ever_RorE=0 if always_RorE==1
replace ever_LP=0 if always_RorE==1

*One weird case*
replace always_RorE=0 if always_LP==1

*Now resolve ever_LP and ever_RorE (but not always) by summing up the total probabilities across years and choosing the larger one*
bysort campus9: egen num_LP=total( p_roundLP)
bysort campus9: egen num_RorE=total( p_roundRorE)
replace ever_LP=0 if ever_LP==1 & ever_RorE==1 & num_LP<num_RorE
replace ever_RorE=0 if ever_LP==1 & ever_RorE==1 & num_LP>num_RorE
*Break tie based on number of times rather than total sum*
bysort campus9: egen count_LP=total( anyLP)
bysort campus9: egen count_RorE=total(anyRorE)
replace ever_LP=0 if ever_LP==1 & ever_RorE==1 & num_LP==num_RorE & count_LP<count_RorE
replace ever_RorE=0 if ever_LP==1 & ever_RorE==1 & num_LP==num_RorE & count_LP>count_RorE
*10 cases where everthing is equal - put them in safe A category*
replace always_safeA=1 if ever_LP==1 & ever_RorE==1 & num_LP==num_RorE & count_LP==count_RorE
replace ever_LP=0 if always_safeA==1 & num_LP==num_RorE & count_LP==count_RorE
replace ever_RorE=0 if always_safeA==1 & num_LP==num_RorE & count_LP==count_RorE
*Now categories are mutually exclusive - descriptive stats for Table 2*

gen schoolcat=1 if always_LP==1
replace schoolcat=2 if ever_LP==1
replace schoolcat=3 if always_safeA==1
replace schoolcat=4 if ever_RorE==1
replace schoolcat=5 if always_RorE==1

merge 1:1 campus9 year_9 using "$data\means_by_subgroup8th_noMISS.dta, keep(master using match) 


gen no_subgroups=_merge==1
drop _merge
gen posLP=p_roundLP>0 & p_roundLP!=.
gen pctblack= Nblack/ Nall
gen pcthisp= Nhisp/ Nall
gen pctlunch= Nfrpl/ Nall
foreach x in g8wraw g8rraw g8mraw g8wscale g8rscale g8mscale g8mscale_pass g8rscale_pass g8wscale_pass {
	foreach y in all black hisp frpl {
		replace `x'_`y'=0 if `x'_`y'==. & missing_small_N`y'==1
	}
}
foreach x in black hisp frpl white all {
	replace missing_small_N`x'=0 if missing_small_N`x'==.
}
foreach x in raw scale scale_pass {
	forvalues y=1995(1)2001 {
		gen tempg8m`x'_all_`y'=g8m`x'_all if year_9==`y'
		bysort campus9: egen g8m`x'_all_`y'=max(tempg8m`x'_all_`y')
		drop temp*
	}
}
foreach x in raw scale scale_pass {
	gen g8m`x'_all_lag=.
	gen g8m`x'_all_lead=.
	replace g8m`x'_all_lag= g8m`x'_all_1995 if year_9==1996
	replace g8m`x'_all_lag= g8m`x'_all_1996 if year_9==1997
	replace g8m`x'_all_lag= g8m`x'_all_1997 if year_9==1998
	replace g8m`x'_all_lag= g8m`x'_all_1998 if year_9==1999
	replace g8m`x'_all_lag= g8m`x'_all_1999 if year_9==2000
	replace g8m`x'_all_lag= g8m`x'_all_2000 if year_9==2001

	replace g8m`x'_all_lead= g8m`x'_all_1996 if year_9==1995
	replace g8m`x'_all_lead= g8m`x'_all_1997 if year_9==1996
	replace g8m`x'_all_lead= g8m`x'_all_1998 if year_9==1997
	replace g8m`x'_all_lead= g8m`x'_all_1999 if year_9==1998
	replace g8m`x'_all_lead= g8m`x'_all_2000 if year_9==1999
	replace g8m`x'_all_lead= g8m`x'_all_2001 if year_9==2000
	drop g8m`x'_all_1995- g8m`x'_all_2001
}
foreach y of numlist 1996/1999{
	g year_`y'=(year_9==`y')
	}
	
*some extra vars for the regs
merge 1:1  campus9 year_9 using "$data\extra_vars.dta, keep(master match) nogen
*add trend data*
merge m:1  campus9 using "$data\testtrends.dta, keep(master match) nogen
*Clean for missing values in pre-trend data*

foreach var of varlist taas_11r_e1991- g10wscale_pass_w1994 {
	gen `var'_miss=`var'==.
	replace `var'=0 if `var'_miss==1
}
gen trend=1 if year_9==1995
replace trend=2 if year_9==1996
replace trend=3 if year_9==1997
replace trend=4 if year_9==1998
replace trend=5 if year_9==1999
*Linear trend in 1994 pass rates, overall and by group*
foreach g in a b h e {
	gen g10mscale_pass_`g'1994_trend= g10mscale_pass_`g'1994*trend
}
*Trends in difference between 1994 and earlier years*
foreach g in a b h e {
	foreach t in 1 2 3 {
		gen mathdiff_`g'`t'= g10mscale_pass_`g'1994- taas_11m_`g'199`t'
	}
}
foreach g in a b h e {
	foreach t in 1 2 3 {
		gen mathdiff_`g'`t'_trend=mathdiff_`g'`t'*trend
	}
}

log using "$output\tableA3_results.txt", text replace
	
*Table 3*
reg anyLP black hisp frpl g8mscale_pass_all year_1996 year_1997 year_1998 year_1999, robust cluster(campus9) vce(bootstrap)
testparm black hisp frpl
testparm year_*
areg anyLP black hisp frpl g8mscale_pass_all year_1996 year_1997 year_1998 year_1999 , absorb(campus9) cluster(campus9) vce(bootstrap)
testparm black hisp frpl
testparm year_*
reg anyLP black hisp frpl g8mscale_pass_all year_1998 year_1999  mean_tenure change_princ mean_teachpay, robust cluster(campus9) vce(bootstrap)
testparm black hisp frpl
testparm year_*
testparm mean_tenure change_princ mean_teachpay
areg anyLP black hisp frpl g8mscale_pass_all year_1998 year_1999  mean_tenure change_princ mean_teachpay, absorb(campus9) cluster(campus9) vce(bootstrap)
testparm black hisp frpl
testparm year_*
testparm mean_tenure change_princ mean_teachpay
areg anyLP black hisp frpl g8mscale_pass_all year_1996 year_1997 year_1998 year_1999  g8mscale_pass_black g8mscale_pass_hisp g8mscale_pass_frpl missing_small_Nblack missing_small_Nhisp missing_small_Nfrpl, absorb(campus9) cluster(campus9) vce(bootstrap)
testparm black hisp frpl
testparm year_*
areg anyLP black hisp frpl g8mscale_pass_all year_1997 year_1998  g8mscale_pass_all_lag g8mscale_pass_all_lead , absorb(campus9) cluster(campus9) vce(bootstrap)
testparm black hisp frpl
testparm year_*
testparm g8mscale_pass_all_lag g8mscale_pass_all_lead

cap log close

log using output\tableA4_results.txt, text replace


*Table A4 - sample selection model with trends*

*with/without school FE - 1) no trends; 2) 1994 main score trend 3) add 1994 subgroups; 4) add trends in deltas*

reg anyLP black hisp frpl g8mscale_pass_all g8mscale_pass_black g8mscale_pass_hisp g8mscale_pass_frpl year_1996 year_1997 year_1998 year_1999, robust cluster(campus9) vce(bootstrap)
reg anyLP black hisp frpl g8mscale_pass_all g8mscale_pass_black g8mscale_pass_hisp g8mscale_pass_frpl year_1996 year_1997 year_1998 year_1999 g10mscale_pass_a1994_trend, robust cluster(campus9) vce(bootstrap)
testparm *trend
reg anyLP black hisp frpl g8mscale_pass_all g8mscale_pass_black g8mscale_pass_hisp g8mscale_pass_frpl year_1996 year_1997 year_1998 year_1999 g10*trend, robust cluster(campus9) vce(bootstrap)
testparm *trend
reg anyLP black hisp frpl g8mscale_pass_all g8mscale_pass_black g8mscale_pass_hisp g8mscale_pass_frpl year_1996 year_1997 year_1998 year_1999 *trend, robust cluster(campus9) vce(bootstrap)
testparm *trend

areg anyLP black hisp frpl g8mscale_pass_all g8mscale_pass_black g8mscale_pass_hisp g8mscale_pass_frpl year_1996 year_1997 year_1998 year_1999, absorb(campus9) cluster(campus9) vce(bootstrap)
areg anyLP black hisp frpl g8mscale_pass_all g8mscale_pass_black g8mscale_pass_hisp g8mscale_pass_frpl year_1996 year_1997 year_1998 year_1999 g10mscale_pass_a1994_trend, absorb(campus9) cluster(campus9) vce(bootstrap)
testparm *trend
areg anyLP black hisp frpl g8mscale_pass_all g8mscale_pass_black g8mscale_pass_hisp g8mscale_pass_frpl year_1996 year_1997 year_1998 year_1999 g10*trend, absorb(campus9) cluster(campus9) vce(bootstrap)
testparm *trend
areg anyLP black hisp frpl g8mscale_pass_all g8mscale_pass_black g8mscale_pass_hisp g8mscale_pass_frpl year_1996 year_1997 year_1998 year_1999 *trend, absorb(campus9) cluster(campus9) vce(bootstrap)
testparm *trend

cap log close

*More sample selection models*

log using output\tableA4_moreresults.txt, text replace

*results with RorE*
reg anyRorE black hisp frpl g8mscale_pass_all year_1996 year_1997 year_1998 year_1999, robust cluster(campus9) vce(bootstrap)
testparm black hisp frpl
testparm year_*
areg anyRorE black hisp frpl g8mscale_pass_all year_1996 year_1997 year_1998 year_1999 , absorb(campus9) cluster(campus9) vce(bootstrap)
testparm black hisp frpl
testparm year_*
reg anyRorE black hisp frpl g8mscale_pass_all year_1998 year_1999  mean_tenure change_princ mean_teachpay, robust cluster(campus9) vce(bootstrap)
testparm black hisp frpl
testparm year_*
testparm mean_tenure change_princ mean_teachpay
areg anyRorE black hisp frpl g8mscale_pass_all year_1998 year_1999  mean_tenure change_princ mean_teachpay, absorb(campus9) cluster(campus9) vce(bootstrap)
testparm black hisp frpl
testparm year_*
testparm mean_tenure change_princ mean_teachpay
areg anyRorE black hisp frpl g8mscale_pass_all year_1996 year_1997 year_1998 year_1999  g8mscale_pass_black g8mscale_pass_hisp g8mscale_pass_frpl missing_small_Nblack missing_small_Nhisp missing_small_Nfrpl, absorb(campus9) cluster(campus9) vce(bootstrap)
testparm black hisp frpl
testparm year_*
areg anyRorE black hisp frpl g8mscale_pass_all year_1997 year_1998  g8mscale_pass_all_lag g8mscale_pass_all_lead , absorb(campus9) cluster(campus9) vce(bootstrap)
testparm black hisp frpl
testparm year_*
testparm g8mscale_pass_all_lag g8mscale_pass_all_lead

reg anyRorE black hisp frpl g8mscale_pass_all g8mscale_pass_black g8mscale_pass_hisp g8mscale_pass_frpl year_1996 year_1997 year_1998 year_1999, robust cluster(campus9) vce(bootstrap)
reg anyRorE black hisp frpl g8mscale_pass_all g8mscale_pass_black g8mscale_pass_hisp g8mscale_pass_frpl year_1996 year_1997 year_1998 year_1999 g10mscale_pass_a1994_trend, robust cluster(campus9) vce(bootstrap)
testparm *trend
reg anyRorE black hisp frpl g8mscale_pass_all g8mscale_pass_black g8mscale_pass_hisp g8mscale_pass_frpl year_1996 year_1997 year_1998 year_1999 g10*trend, robust cluster(campus9) vce(bootstrap)
testparm *trend
reg anyRorE black hisp frpl g8mscale_pass_all g8mscale_pass_black g8mscale_pass_hisp g8mscale_pass_frpl year_1996 year_1997 year_1998 year_1999 *trend, robust cluster(campus9) vce(bootstrap)
testparm *trend

areg anyRorE black hisp frpl g8mscale_pass_all g8mscale_pass_black g8mscale_pass_hisp g8mscale_pass_frpl year_1996 year_1997 year_1998 year_1999, absorb(campus9) cluster(campus9) vce(bootstrap)
areg anyRorE black hisp frpl g8mscale_pass_all g8mscale_pass_black g8mscale_pass_hisp g8mscale_pass_frpl year_1996 year_1997 year_1998 year_1999 g10mscale_pass_a1994_trend, absorb(campus9) cluster(campus9) vce(bootstrap)
testparm *trend
areg anyRorE black hisp frpl g8mscale_pass_all g8mscale_pass_black g8mscale_pass_hisp g8mscale_pass_frpl year_1996 year_1997 year_1998 year_1999 g10*trend, absorb(campus9) cluster(campus9) vce(bootstrap)
testparm *trend
areg anyRorE black hisp frpl g8mscale_pass_all g8mscale_pass_black g8mscale_pass_hisp g8mscale_pass_frpl year_1996 year_1997 year_1998 year_1999 *trend, absorb(campus9) cluster(campus9) vce(bootstrap)
testparm *trend

*results with continuous probability instead of anyLP*
reg p_roundLP black hisp frpl g8mscale_pass_all year_1996 year_1997 year_1998 year_1999 , robust cluster(campus9) vce(bootstrap)
testparm black hisp frpl
testparm year_*
areg p_roundLP black hisp frpl g8mscale_pass_all year_1996 year_1997 year_1998 year_1999 , absorb(campus9) cluster(campus9) vce(bootstrap)
testparm black hisp frpl
testparm year_*
reg p_roundLP black hisp frpl g8mscale_pass_all year_1998 year_1999  mean_tenure change_princ mean_teachpay, robust cluster(campus9) vce(bootstrap)
testparm black hisp frpl
testparm year_*
testparm mean_tenure change_princ mean_teachpay
areg p_roundLP black hisp frpl g8mscale_pass_all  year_1998 year_1999  mean_tenure change_princ mean_teachpay, absorb(campus9) cluster(campus9) vce(bootstrap)
testparm black hisp frpl
testparm year_*
testparm mean_tenure change_princ mean_teachpay
areg p_roundLP black hisp frpl g8mscale_pass_all year_1996 year_1997 year_1998 year_1999  g8mscale_pass_black g8mscale_pass_hisp g8mscale_pass_frpl missing_small_Nblack missing_small_Nhisp missing_small_Nfrpl, absorb(campus9) cluster(campus9) vce(bootstrap)
testparm black hisp frpl
testparm year_*
areg p_roundLP black hisp frpl g8mscale_pass_all year_1997 year_1998  g8mscale_pass_all_lag g8mscale_pass_all_lead , absorb(campus9) cluster(campus9) vce(bootstrap)
testparm black hisp frpl
testparm year_*
testparm g8mscale_pass_all_lag g8mscale_pass_all_lead

reg p_roundLP black hisp frpl g8mscale_pass_all g8mscale_pass_black g8mscale_pass_hisp g8mscale_pass_frpl year_1996 year_1997 year_1998 year_1999, robust cluster(campus9) vce(bootstrap)
reg p_roundLP black hisp frpl g8mscale_pass_all g8mscale_pass_black g8mscale_pass_hisp g8mscale_pass_frpl year_1996 year_1997 year_1998 year_1999 g10mscale_pass_a1994_trend, robust cluster(campus9) vce(bootstrap)
testparm *trend
reg p_roundLP black hisp frpl g8mscale_pass_all g8mscale_pass_black g8mscale_pass_hisp g8mscale_pass_frpl year_1996 year_1997 year_1998 year_1999 g10*trend, robust cluster(campus9) vce(bootstrap)
testparm *trend
reg p_roundLP black hisp frpl g8mscale_pass_all g8mscale_pass_black g8mscale_pass_hisp g8mscale_pass_frpl year_1996 year_1997 year_1998 year_1999 *trend, robust cluster(campus9) vce(bootstrap)
testparm *trend

areg p_roundLP black hisp frpl g8mscale_pass_all g8mscale_pass_black g8mscale_pass_hisp g8mscale_pass_frpl year_1996 year_1997 year_1998 year_1999, absorb(campus9) cluster(campus9) vce(bootstrap)
areg p_roundLP black hisp frpl g8mscale_pass_all g8mscale_pass_black g8mscale_pass_hisp g8mscale_pass_frpl year_1996 year_1997 year_1998 year_1999 g10mscale_pass_a1994_trend, absorb(campus9) cluster(campus9) vce(bootstrap)
testparm *trend
areg p_roundLP black hisp frpl g8mscale_pass_all g8mscale_pass_black g8mscale_pass_hisp g8mscale_pass_frpl year_1996 year_1997 year_1998 year_1999 g10*trend, absorb(campus9) cluster(campus9) vce(bootstrap)
testparm *trend
areg p_roundLP black hisp frpl g8mscale_pass_all g8mscale_pass_black g8mscale_pass_hisp g8mscale_pass_frpl year_1996 year_1997 year_1998 year_1999 *trend, absorb(campus9) cluster(campus9) vce(bootstrap)
testparm *trend

cap log close
}


*Results for Figure A4 - earnings/in school/idle, by year*
if "$fig_earn_idle"=="1"{
use  data\0718_13_stuanalysisfile_fullpred.dta, clear

global outcomes_byyear "idle19 idle20 idle21 idle22 idle23 idle24 idle25 inschool19 inschool20 inschool21 inschool22 inschool23 inschool24 inschool25 earn_noschl19 earn_noschl20 earn_noschl21 earn_noschl22 earn_noschl23 earn_noschl24 earn_noschl25"
global next_byyear "idle20 idle21 idle22 idle23 idle24 idle25 inschool19 inschool20 inschool21 inschool22 inschool23 inschool24 inschool25 earn_noschl19 earn_noschl20 earn_noschl21 earn_noschl22 earn_noschl23 earn_noschl24 earn_noschl25"

foreach o of global outcomes_byyear {
	*with school FE
		areg `o' $xtest_raw  $demog year9dum* anyLP anyRorE, absorb(campus9) cluster(campus9) vce(bootstrap)	
		parmest, stars(0.05 0.01) es(N) saving(output\simpleFE_byyr_`o'.dta, replace)
		}
foreach o of global outcomes_byyear {
	*with school FE
		areg `o' $xtest_raw  $demog year9dum* anyLP_fail anyLP_pass anyRorE_fail anyRorE_pass g8_pass, absorb(campus9) cluster(campus9) vce(bootstrap)	
		parmest, stars(0.05 0.01) es(N) saving(output\math8FE_byyr_`o'.dta, replace)
		}
*Compile*
use simpleFE_byyr_idle19.dta, clear
	gen outcome = "idle19"
		foreach next of global next_byyear {
			append using simpleFE_byyr_`next'.dta
			replace outcome = "`next'" if outcome==""
		}
	ren es_1 N
	save output\to_ferpa\simpleFE_byyr.dta, replace
use math8FE_byyr_idle19.dta, clear
	gen outcome = "idle19"
		foreach next of global next_byyear {
			append using math8FE_byyr_`next'.dta
			replace outcome = "`next'" if outcome==""
		}
	ren es_1 N
	save output\to_ferpa\math8FE_byyr.dta, replace
}

*Min Pass figure (fig 4)
if "$fig_minpass"=="1"{
use  data\0718_13_stuanalysisfile_minpass.dta, clear	

*FOR FIGURE A4
foreach o of global outcomes_tables_short {
	*with school FE
	areg `o' $xtest_raw $demog year9dum*  threshold8_neg10 threshold8_neg5to10 threshold8_neg0to5 threshold8_pos0to5 threshold8_pos5to10 threshold8_pos10to15 threshold8_pos25to30 threshold8_pos30to35 threshold8_pos35to40 threshold8_pos40plus, absorb(campus9) cluster(campus9) vce(bootstrap)
		parmest, stars(0.05 0.01) es(N) saving(output\simpleFE_minpass8_`o'.dta, replace)
	*without school FE
	reg `o' $xtest_raw $demog year9dum* threshold8_neg10 threshold8_neg5to10 threshold8_neg0to5 threshold8_pos0to5 threshold8_pos5to10 threshold8_pos10to15 threshold8_pos25to30 threshold8_pos30to35 threshold8_pos35to40 threshold8_pos40plus, robust cluster(campus9) vce(bootstrap)
		parmest, stars(0.05 0.01) es(N) saving(output\simple_minpass8_`o'.dta, replace)
	}
*Compile
	use simpleFE_minpass8_g10mscale_pass.dta, clear
	gen outcome = "g10mscale_pass"
		foreach next of global next_tables_short {
			append using simpleFE_minpass8_`next'.dta
			replace outcome = "`next'" if outcome==""
		}
	ren es_1 N
	save output\to_ferpa\simpleFE_minpass8.dta, replace

	use simple_minpass8_g10mscale_pass.dta, clear
	gen outcome = "g10mscale_pass"
		foreach next of global next_tables_short {
			append using simple_minpass8_`next'.dta
			replace outcome = "`next'" if outcome==""
		}
	ren es_1 N
	save output\to_ferpa\simple_minpass8.dta, replace
}
*Last check - falsification test using 7th grade math scores*
if "$g7_check"=="1"{
*Throw out first cohort since 7th grade scores are missing, pre-accountability*

*main results
use data\0718_13_stuanalysisfile_fullpred.dta, clear
drop if year_9==1995
merge 1:1 ssnrep using data\g7math.dta, keep(master match)
foreach o of varlist m7scale m7scale_pass m7z {
areg  `o' classrank g8mraw g8rraw g8wraw g8mraw_sq g8mraw_cub g8rraw_sq g8rraw_cub g8wraw_sq ///
	g8wraw_cub black hisp frpl male esl speced lep year9dum* anyLP anyRorE if year_9!=1995, ///
	absorb(campus9) cluster(campus9)  vce(bootstrap)
	parmest, stars(0.05 0.01) es(N) saving(output\grade7_simpleFE_`o'.dta, replace)
areg `o' classrank g8mraw g8rraw g8wraw g8mraw_sq g8mraw_cub g8rraw_sq g8rraw_cub g8wraw_sq ///
	g8wraw_cub black hisp frpl male esl speced lep year9dum* anyLP_fail anyLP_pass anyRorE_fail ///
	anyRorE_pass g8_pass , absorb(campus9) cluster(campus9)  vce(bootstrap)	
		parmest, stars(0.05 0.01) es(N) saving(output\grade7_math8FE_`o'.dta, replace)

	}
*A10 results
use data\0718_13_stuanalysisfile_avg.dta, clear
drop if year_9==1995
merge 1:1 ssnrep using data\g7math.dta, keep(master match)

foreach o of varlist m7scale m7scale_pass m7z {
areg  `o' classrank g8mraw g8rraw g8wraw g8mraw_sq g8mraw_cub g8rraw_sq g8rraw_cub g8wraw_sq g8wraw_cub ///
	black hisp frpl male esl speced lep year9dum* anyLP anyRorE if year_9!=1995, ///
	absorb(campus9) cluster(campus9) vce(bootstrap)
	parmest, stars(0.05 0.01) es(N) saving(output\grade7_simpleFE_avg_`o'.dta, replace)
areg `o' classrank g8mraw g8rraw g8wraw g8mraw_sq g8mraw_cub g8rraw_sq g8rraw_cub g8wraw_sq ///
	g8wraw_cub black hisp frpl male esl speced lep year9dum* anyLP_fail anyLP_pass anyRorE_fail ///
	anyRorE_pass g8_pass , absorb(campus9) cluster(campus9)   vce(bootstrap)	
		parmest, stars(0.05 0.01) es(N) saving(output\grade7_math8FE_avg_`o'.dta, replace)
}


*compile grade 7
use output\grade7_simpleFE_m7scale.dta, clear
	gen outcome = "m7scale"
		foreach next in m7scale_pass m7z {
			append using output\grade7_simpleFE_`next'.dta
			replace outcome = "`next'" if outcome==""
		}
	ren es_1 N
		g model = "grade7 main results"
	save output\grade7_simpleFE.dta, replace
use output\grade7_math8FE_m7scale.dta, clear
	gen outcome = "m7scale"
		foreach next in m7scale_pass m7z {
			append using output\grade7_math8FE_`next'.dta
			replace outcome = "`next'" if outcome==""
		}
	ren es_1 N
		g model = "grade7 main results with interactions"
	save output\grade7_math8FE.dta, replace
use output\grade7_simpleFE_avg_m7scale.dta, clear
	gen outcome = "m7scale"
		foreach next in m7scale_pass m7z {
			append using output\grade7_simpleFE_avg_`next'.dta
			replace outcome = "`next'" if outcome==""
		}
	ren es_1 N
			g model = "grade7 TableA10 results"
	save output\grade7_simpleFE_avg.dta, replace
use output\grade7_math8FE_avg_m7scale.dta, clear
	gen outcome = "m7scale"
		foreach next in m7scale_pass m7z {
			append using output\grade7_math8FE_avg_`next'.dta
			replace outcome = "`next'" if outcome==""
		}
	ren es_1 N
			g model = "grade7 TableA10 results with interactions"
	save output\grade7_math8FE_avg.dta, replace
	
	append using output\grade7_simpleFE_avg.dta
	append using output\grade7_math8FE.dta
	append using output\grade7_simpleFE.dta
	save output\to_ferpa\ALL_grade7_tableA8_results.dta, replace

}
}

if "$analysisNov2014" == "1" {
set more off, perm
*SWITCHES
global outcomes_tables_short "g10mscale_pass m_ever_pass g10mscale g10mz newspedT1 hsgrad_in8 totcred_math anycoll_in8 coll4yr_in8 anycoll coll4yr sems_enroll4yr25   BA earn23_zeroes earn24_zeroes earn25_zeroes earn23_24_25_zeroes  idle_all"
global next_tables_short " m_ever_pass g10mscale g10mz newspedT1 hsgrad_in8 totcred_math anycoll_in8 coll4yr_in8 anycoll coll4yr sems_enroll4yr25   BA earn23_zeroes earn24_zeroes earn25_zeroes earn23_24_25_zeroes  idle_all"



global bycohort 1 // main results with interactions by cohort
global moreA10 1 // extend analysis using only policy variation
global placebo 1 // include schools w/ less than 10% of subgroup
global switchedon 1 // once flipped always flipped
global onlynew 1 // only newly turned on
global eventstudy 1 // event study based on first "at-risk"
global compilenew 0 // compile
* Main results with event study
if "$eventstudy" == "1" {
****THIS INCLUDES
******no dropping small subgroups
******dropping schools at 8-10%, but including 0-8%
use  data\0718_13_stuanalysisfile_eventstudy_anyLP_fullpred.dta, clear

foreach o of global outcomes_tables_short {
	*with school FE
		areg `o' $xtest_raw  $demog year9dum*   anyLP_minus3* anyLP_minus2 anyLP_zero anyLP_plus* , absorb(campus9) cluster(campus9)  vce(bootstrap)	
		parmest, stars(0.05 0.01) es(N) saving(output\simpleFE_main_eventstudyanyLP_`o'.dta, replace)
		}
		
use  data\0718_13_stuanalysisfile_eventstudy_anyRorE_fullpred.dta, clear

foreach o of global outcomes_tables_short {
	*with school FE
		areg `o' $xtest_raw  $demog year9dum*  anyRorE_minus3* anyRorE_minus2 anyRorE_zero* anyRorE_plus* , absorb(campus9) cluster(campus9)  vce(bootstrap)	
		parmest, stars(0.05 0.01) es(N) saving(output\simpleFE_main_eventstudyanyRorE_`o'.dta, replace)

		}
		
use  data\0718_13_stuanalysisfile_eventstudy_anyLP_avg.dta, clear

foreach o of global outcomes_tables_short {
	*with school FE
		areg `o' $xtest_raw  $demog year9dum*   anyLP_minus3* anyLP_minus2 anyLP_zero anyLP_plus* , absorb(campus9) cluster(campus9)  vce(bootstrap)	
		parmest, stars(0.05 0.01) es(N) saving(output\simpleFE_avg_eventstudyanyLP_`o'.dta, replace)
		}
		
use  data\0718_13_stuanalysisfile_eventstudy_anyRorE_avg.dta, clear

foreach o of global outcomes_tables_short {
	*with school FE
		areg `o' $xtest_raw  $demog year9dum*  anyRorE_minus3* anyRorE_minus2 anyRorE_zero* anyRorE_plus* , absorb(campus9) cluster(campus9)  vce(bootstrap)	
		parmest, stars(0.05 0.01) es(N) saving(output\simpleFE_avg_eventstudyanyRorE_`o'.dta, replace)

		}

	
}


* Main results taking without into account 10% rule
if "$placebo" == "1" {
****THIS INCLUDES
******no dropping small subgroups
******dropping schools at 8-10%, but including 0-8%
use  data\0718_13_stuanalysisfile_nodrop_analysis.dta, clear

foreach r of varlist wouldbe_anyLP wouldnotbe_anyRorE {
	foreach p in fail pass {
		gen byte `r'_`p'=`r'*g8_`p'
}
}

foreach o of global outcomes_tables_short {
	*with school FE
		areg `o' $xtest_raw  $demog year9dum* wouldbe_anyLP anyLP wouldnotbe_anyRorE anyRorE , absorb(campus9) cluster(campus9) vce(bootstrap)	
		parmest, stars(0.05 0.01) es(N) saving(output\simpleFE_main_placebo_`o'.dta, replace)

		areg `o' $xtest_raw  $demog year9dum* wouldbe_anyLP_fail wouldbe_anyLP_pass anyLP_fail anyLP_pass wouldnotbe_anyRorE_fail wouldnotbe_anyRorE_pass anyRorE_fail anyRorE_pass g8_pass, absorb(campus9) cluster(campus9) vce(bootstrap)	
		parmest, stars(0.05 0.01) es(N) saving(output\math8FE_main_placebo_`o'.dta, replace)

		}


}
* Main results -- once flipped, always flipped
if "$switchedon" == "1" {

use  data\0718_13_stuanalysisfile_switchedon.dta, clear

foreach r of varlist anyLPswitchedon anyRorEswitchedon {
	foreach p in fail pass {
		gen byte `r'_`p'=`r'*g8_`p'
}
}

foreach o of global outcomes_tables_short {
	*with school FE
		areg `o' $xtest_raw  $demog year9dum*  anyLPswitchedon  anyRorEswitchedon , absorb(campus9) cluster(campus9) vce(bootstrap)	
		parmest, stars(0.05 0.01) es(N) saving(output\simpleFE_main_switchedon_`o'.dta, replace)

		areg `o' $xtest_raw  $demog year9dum* anyLPswitchedon_fail anyLPswitchedon_pass  anyRorEswitchedon_fail anyRorEswitchedon_pass g8_pass, absorb(campus9) cluster(campus9) vce(bootstrap)	
		parmest, stars(0.05 0.01) es(N) saving(output\math8FE_main_switchedon_`o'.dta, replace)

		}


}
* Main results -- only newly turned on
if "$onlynew" == "1" {

use  data\0718_13_stuanalysisfile_onlynewanyLP.dta, clear
foreach r of varlist anyLPonlynew {
	foreach p in fail pass {
		gen byte `r'_`p'=`r'*g8_`p'
}
}
foreach o of global outcomes_tables_short {
		areg `o' $xtest_raw  $demog year9dum*  anyLPonlynew   , absorb(campus9) cluster(campus9) vce(bootstrap)	
		parmest, stars(0.05 0.01) es(N) saving(output\simpleFE_main_onlynewLPmultyrs_`o'.dta, replace)
		
		*reg `o' $xtest_raw  $demog year9dum*  anyLPonlynew   ,  cluster(campus9) vce(bootstrap)	
		*parmest, stars(0.05 0.01) es(N) saving(output\noFE_main_onlynewLPmultyrs_`o'.dta, replace)


		areg `o' $xtest_raw  $demog year9dum* anyLPonlynew_fail anyLPonlynew_pass   g8_pass, absorb(campus9) cluster(campus9) vce(bootstrap)	
		parmest, stars(0.05 0.01) es(N) saving(output\math8FE_main_onlynewLPmultyrs_`o'.dta, replace)
		}
		
use  data\0718_13_stuanalysisfile_onlynewanyRorE.dta, clear
foreach r of varlist anyRorEonlynew {
	foreach p in fail pass {
		gen byte `r'_`p'=`r'*g8_`p'
}
}
foreach o of global outcomes_tables_short {
		areg `o' $xtest_raw  $demog year9dum*  anyRorEonlynew   , absorb(campus9) cluster(campus9) vce(bootstrap)	
		parmest, stars(0.05 0.01) es(N) saving(output\simpleFE_main_onlynewRorEmultyrs_`o'.dta, replace)
	
		*reg `o' $xtest_raw  $demog year9dum*  anyRorEonlynew   ,  cluster(campus9) vce(bootstrap)	
		*parmest, stars(0.05 0.01) es(N) saving(output\noFE_main_onlynewRorEmultyrs_`o'.dta, replace)
		

		areg `o' $xtest_raw  $demog year9dum* anyRorEonlynew_fail anyRorEonlynew_pass   g8_pass, absorb(campus9) cluster(campus9) vce(bootstrap)	
		parmest, stars(0.05 0.01) es(N) saving(output\math8FE_main_onlynewRorEmultyrs_`o'.dta, replace)

	}		
	
use  data\0718_13_stuanalysisfile_onlynewanyLP_2yrs.dta, clear
foreach r of varlist anyLPonlynew {
	foreach p in fail pass {
		gen byte `r'_`p'=`r'*g8_`p'
}
}
foreach o of global outcomes_tables_short {
		areg `o' $xtest_raw  $demog year9dum*  anyLPonlynew   , absorb(campus9) cluster(campus9) vce(bootstrap)	
		parmest, stars(0.05 0.01) es(N) saving(output\simpleFE_main_onlynewLP2yrs_`o'.dta, replace)
		
		*reg `o' $xtest_raw  $demog year9dum*  anyLPonlynew   ,  cluster(campus9) vce(bootstrap)	
		*parmest, stars(0.05 0.01) es(N) saving(output\noFE_main_onlynewLP2yrs_`o'.dta, replace)

		areg `o' $xtest_raw  $demog year9dum* anyLPonlynew_fail anyLPonlynew_pass   g8_pass, absorb(campus9) cluster(campus9) vce(bootstrap)	
		parmest, stars(0.05 0.01) es(N) saving(output\math8FE_main_onlynewLP2yrs_`o'.dta, replace)
		}
		
use  data\0718_13_stuanalysisfile_onlynewanyRorE_2yrs.dta, clear
foreach r of varlist anyRorEonlynew {
	foreach p in fail pass {
		gen byte `r'_`p'=`r'*g8_`p'
}
}
foreach o of global outcomes_tables_short {
		areg `o' $xtest_raw  $demog year9dum*  anyRorEonlynew   , absorb(campus9) cluster(campus9) vce(bootstrap)	
		parmest, stars(0.05 0.01) es(N) saving(output\simpleFE_main_onlynewRorE2yrs_`o'.dta, replace)
	
		*reg `o' $xtest_raw  $demog year9dum*  anyRorEonlynew   ,  cluster(campus9) vce(bootstrap)	
		*parmest, stars(0.05 0.01) es(N) saving(output\noFE_main_onlynewRorE2yrs_`o'.dta, replace)
		
		areg `o' $xtest_raw  $demog year9dum* anyRorEonlynew_fail anyRorEonlynew_pass   g8_pass, absorb(campus9) cluster(campus9) vce(bootstrap)	
		parmest, stars(0.05 0.01) es(N) saving(output\math8FE_main_onlynewRorE2yrs_`o'.dta, replace)

	}		
		
		
}

* Main results with cohort interactions
if "$bycohort" == "1" {
use  data\0718_13_stuanalysisfile_fullpred.dta, clear

*generate interactions
foreach n of numlist 1995/1999{
	foreach s of varlist anyLP anyRorE {
		g byte `s'`n'=`s'*(year_9==`n')
	foreach p in fail pass {
			gen byte `s'`n'_`p'=`s'`n'*g8_`p'
		}
	}
}


foreach o of global outcomes_tables_short {
	*with school FE
		areg `o' $xtest_raw  $demog year9dum* anyLP1995 anyLP1996 anyLP1997 anyLP1998 anyLP1999 anyRorE1995 anyRorE1996 anyRorE1997 anyRorE1998 anyRorE1999  , absorb(campus9) cluster(campus9) vce(bootstrap)	
		parmest, stars(0.05 0.01) es(N) saving(output\simpleFE_main_bycohort_`o'.dta, replace)
		
		areg `o' $xtest_raw  $demog year9dum* anyLP19*pass anyLP19*fail anyRorE19*pass  anyRorE19*fail , absorb(campus9) cluster(campus9) vce(bootstrap)	
		parmest, stars(0.05 0.01) es(N) saving(output\math8FE_main_bycohort_`o'.dta, replace)		
		}

}
* A10 results with cohort interactions
if "$moreA10"=="1"{
use data\0718_13_stuanalysisfile_avg.dta, replace

*generate interactions
foreach n of numlist 1995/1999{
	foreach s of varlist anyLP anyRorE {
		g byte `s'`n'=`s'*(year_9==`n')
	foreach p in fail pass {
			gen byte `s'`n'_`p'=`s'`n'*g8_`p'
		}
	}
}


foreach o of global outcomes_tables_short {
	*with school FE
		areg `o' $xtest_raw  $demog year9dum* anyLP1995 anyLP1996 anyLP1997 anyLP1998 anyLP1999 anyRorE1995 anyRorE1996 anyRorE1997 anyRorE1998 anyRorE1999  , absorb(campus9) cluster(campus9) vce(bootstrap)	
		parmest, stars(0.05 0.01) es(N) saving(output\simpleFE_avg_bycohort_`o'.dta, replace)
		
		areg `o' $xtest_raw  $demog year9dum* anyLP19*pass anyLP19*fail anyRorE19*pass  anyRorE19*fail , absorb(campus9) cluster(campus9) vce(bootstrap)	
		parmest, stars(0.05 0.01) es(N) saving(output\math8FE_avg_bycohort_`o'.dta, replace)		
				}



}


if "$compile_new" == "1" {

use output\simpleFE_avg_eventstudyanyRorE_g10mscale_pass.dta, clear
	gen outcome = "g10mscale_pass"
		foreach next of global next_tables_short {
			append using output\simpleFE_avg_eventstudyanyRorE_`next'.dta
			replace outcome = "`next'" if outcome==""
		}
	ren es_1 N
	g model = "average prediction, event study RorE"
	g filename = "simpleFE_avg_eventstudyanyRorE"
	save output\simpleFE_avg_eventstudyanyRorE.dta, replace
	
use output\simpleFE_avg_eventstudyanyLP_g10mscale_pass.dta, clear
	gen outcome = "g10mscale_pass"
		foreach next of global next_tables_short {
			append using output\simpleFE_avg_eventstudyanyLP_`next'.dta
			replace outcome = "`next'" if outcome==""
		}
	ren es_1 N
	g model = "average prediction, event study LP"
	g filename = "simpleFE_avg_eventstudyanyLP"
	save output\simpleFE_avg_eventstudyanyLP.dta, replace
	
use output\simpleFE_main_eventstudyanyRorE_g10mscale_pass.dta, clear
	gen outcome = "g10mscale_pass"
		foreach next of global next_tables_short {
			append using output\simpleFE_main_eventstudyanyRorE_`next'.dta
			replace outcome = "`next'" if outcome==""
		}
	ren es_1 N
	g model = "yearbyyear prediction, event study RorE"
	g filename = "simpleFE_main_eventstudyanyRorE"
	save output\simpleFE_main_eventstudyanyRorE.dta, replace
	
use output\simpleFE_main_eventstudyanyLP_g10mscale_pass.dta, clear
	gen outcome = "g10mscale_pass"
		foreach next of global next_tables_short {
			append using output\simpleFE_main_eventstudyanyLP_`next'.dta
			replace outcome = "`next'" if outcome==""
		}
	ren es_1 N
	g model = "yearbyyear prediction, event study LP"
	g filename = "simpleFE_main_eventstudyanyLP"
	save output\simpleFE_main_eventstudyanyLP.dta, replace

foreach t in simpleFE math8FE{
if "`t'" == "simpleFE"{
	local title "Main, "
	}
else if "`t'" == "math8FE" {
	local title "Prior pass interactions, "
	}
use output/`t'_main_placebo_g10mscale_pass.dta, clear
	gen outcome = "g10mscale_pass"
		foreach next of global next_tables_short {
			append using output/`t'_main_placebo_`next'.dta
			replace outcome = "`next'" if outcome==""
		}
	ren es_1 N
	g model = "`title' placebo"
	g filename = "`t'_main_placebo"
	save output/`t'_main_placebo.dta, replace
	
use output/`t'_main_switchedon_g10mscale_pass.dta, clear
	gen outcome = "g10mscale_pass"
		foreach next of global next_tables_short {
			append using output/`t'_main_switchedon_`next'.dta
			replace outcome = "`next'" if outcome==""
		}
	ren es_1 N
	g model = "`title' switchedon"
	g filename = "`t'_main_switchedon"
	save output/`t'_main_switchedon.dta, replace

use output/`t'_main_onlynewRorE2yrs_g10mscale_pass.dta, clear
	gen outcome = "g10mscale_pass"
		foreach next of global next_tables_short {
			append using output/`t'_main_onlynewRorE2yrs_`next'.dta
			replace outcome = "`next'" if outcome==""
		}
	ren es_1 N
	g model = "`title' onlynewRorE 2yrs"
	g filename = "`t'_main_onlynewRorE2yrs"
	save output/`t'_main_onlynewRorE2yrs.dta, replace
	
use output/`t'_main_onlynewLP2yrs_g10mscale_pass.dta, clear
	gen outcome = "g10mscale_pass"
		foreach next of global next_tables_short {
			append using output/`t'_main_onlynewLP2yrs_`next'.dta
			replace outcome = "`next'" if outcome==""
		}
	ren es_1 N
	g model = "`title' onlynewLP 2yrs"
	g filename = "`t'_main_onlynewLP2yrs"
	save output/`t'_main_onlynewLP2yrs.dta, replace
	
use output/`t'_main_onlynewRorEmultyrs_g10mscale_pass.dta, clear
	gen outcome = "g10mscale_pass"
		foreach next of global next_tables_short {
			append using output/`t'_main_onlynewRorEmultyrs_`next'.dta
			replace outcome = "`next'" if outcome==""
		}
	ren es_1 N
	g model = "`title' onlynewRorE multyrs"
	g filename = "`t'_main_onlynewRorEmultyrs"
	save output/`t'_main_onlynewRorEmultyrs.dta, replace
	
use output/`t'_main_onlynewLPmultyrs_g10mscale_pass.dta, clear
	gen outcome = "g10mscale_pass"
		foreach next of global next_tables_short {
			append using output/`t'_main_onlynewLPmultyrs_`next'.dta
			replace outcome = "`next'" if outcome==""
		}
	ren es_1 N
	g model = "`title' onlynewLP multyrs"
	g filename = "`t'_main_onlynewLPmultyrs"
	save output/`t'_main_onlynewLPmultyrs.dta, replace
	
use output/`t'_main_bycohort_g10mscale_pass.dta, clear
	gen outcome = "g10mscale_pass"
		foreach next of global next_tables_short {
			append using output/`t'_main_bycohort_`next'.dta
			replace outcome = "`next'" if outcome==""
		}
	ren es_1 N
	g model = "`title' Cohort interactions"
	g filename = "`t'_main_onlynewLPmultyrs"
	save output/`t'_main_bycohort.dta, replace
	
use output/`t'_avg_bycohort_g10mscale_pass.dta, clear
	gen outcome = "g10mscale_pass"
		foreach next of global next_tables_short {
			append using output/`t'_avg_bycohort_`next'.dta
			replace outcome = "`next'" if outcome==""
		}
	ren es_1 N
	g model = "`title' Cohort interactions on averaged prediction"
	g filename = "`t'_main_onlynewLPmultyrs"
	save output/`t'_avg_bycohort.dta, replace
	}
		*compile all

	use output/simpleFE_avg_bycohort.dta, clear
	append using  output/math8FE_avg_bycohort.dta
	foreach t in simpleFE math8FE{
	append using output/`t'_main_bycohort.dta
	append using output/`t'_main_onlynewLPmultyrs.dta
	append using output/`t'_main_onlynewRorEmultyrs.dta
	append using output/`t'_main_onlynewLP2yrs.dta
	append using output/`t'_main_onlynewRorE2yrs.dta
	append using output/`t'_main_switchedon.dta
	append using output/`t'_main_placebo.dta
	}
	foreach f in simpleFE_avg_eventstudyanyRorE simpleFE_avg_eventstudyanyLP simpleFE_main_eventstudyanyRorE simpleFE_main_eventstudyanyLP {
	append using output/`f'.dta
	}

	save output/to_ferpa\new_results_11_5_2014.dta, replace
	
}




}
if "$analysisNov2014_part2" == "1" {
global diffindiff 0
global moremodels 0

if "$diffindiff" == "1" {


use data/0718_2013_studentleveldata_DD.dta, clear
merge m:1 campus9 year_9 using data/0718_13_sch_probs_small_avg.dta, keep(1 3) nogen

gen byte blackhisp=black==1 | hisp==1
g byte whiteoth=(blackhisp==0)
g byte female=(male==0)
g byte notfrpl=(frpl==0)

gen byte g10take_m = (g10mscale!=. & g10mscale!=0)
gen byte g10take_r = (g10rscale!=. & g10rscale!=0)
foreach x in m r {
	replace g10`x'scale_pass=. if g10take_`x'==0
}
replace g10wscale=. if g10take_r==0

*dummies so don't have to use xi
qui tab year_9, gen(year9dum)
ren year9dum1 omitted_year9dum1


*SCHOOL VARS SETUP
*keep only cases for whom there is a probablity calculated
drop if (p_schLP==.|p_schR==.|p_schE==.)&year9==1995

	foreach r in E R A LP {
		gen p_round`r'=round((100*p_sch`r'),1)
	}
	gen p_roundRorE=p_roundR+p_roundE
	*Verify that there is a considerable mass of students/schools where pr(A) is rounded to 1*
	gen p_roundnotA=p_roundRorE+p_roundLP
	count if p_roundnotA==100
	*104152
	count if p_roundA==100
	*793024
	count if p_roundnotA!=100 & p_roundnotA!=.
	*1488589
	drop p_roundnotA

*DD - this is new - simplify categories - just sort by 8th grade math score - 3 terciles*
gen byte anyLP=p_roundLP>0 & p_roundLP!=.
gen byte anyRorE=p_roundRorE>0 & p_roundRorE!=.

foreach type in LP RorE{
	gen byte low`type'=p_round`type'>0&p_round`type'<33&p_round`type'!=.
	gen byte mid`type'=p_round`type'>=33 & p_round`type'<67&p_round`type'!=.
	gen byte high`type'= p_round`type'>=67&p_round`type'!=.
	}
	
*categorize by 8th grade pass/fail
gen byte g8mscale_fail=g8mscale_pass==0
gen byte g8rscale_fail=g8rscale_pass==0
gen byte g8_fail=g8mscale_fail==1 | g8rscale_fail==1
gen byte g8_pass=g8mscale_fail==0 & g8rscale_fail==0
foreach r in LP RorE {
	foreach p in fail pass {
		gen byte any`r'_`p'=any`r'*g8_`p'
	}
}
foreach r in LP RorE {
	foreach p in low mid high {
		gen byte any`r'_`p'schl=any`r'*`p'`r'
	}
}


*Modify/create some outcomes
forvalues y=23(1)26 {
	gen earn`y'_zeroes=earn`y'
	replace earn`y'_zeroes=0 if earn`y'_zeroes==.
}
gen earn23_24_25_zeroes=earn23_24_25
replace earn23_24_25_zeroes=0 if earn23_24_25_zeroes==.
gen earn24_25_26_zeroes=earn24_25_26
replace earn24_25_26_zeroes=0 if earn24_25_26==.



g safeA=anyLP==0 & anyRorE==0
g half_prob_passm=1 if g8_fail==1
replace half_prob_passm=2 if g8_pass==1


*Now create vars for school/earnings pathways*
forvalues y=19(1)25 {
	gen byte idle`y'=earn`y'==. & enrolledany_`y'==0
	gen byte inschool`y'=enrolledany_`y'==1
	gen  earn_noschl`y'=earn`y'
	replace earn_noschl`y'=. if inschool`y'==1
}
gen byte idle23_24_25=idle23==1 & idle24==1 & idle25==1
gen byte idle_all=idle19==1 & idle20==1 & idle21==1 & idle22==1 & idle23==1 & idle24==1 & idle25==1


*create classrank variable
egen avgscore=rowmean(g8mraw g8rraw)
bys campus9: egen rank=rank(avgscore)
bys campus9: egen count=count(avgscore)
g classrank=rank/count

foreach v of varlist anyLP anyRorE p_round* {
	bys campus9: egen max=max(`v')
	bys campus9: replace `v'=max if `v'==.
	drop max
}

 drop if anyLP==.&anyRorE==.
 

 collapse $demog $xtest_raw $outcomes_tables_short anyLP anyRorE p_round*, by(campus9 year_9)
 
 g y1995=(year_9==1995)
 g anyLP_1995=anyLP*(year_9==1995)
 g anyRorE_1995=anyRorE*(year_9==1995)
 save data/DD_schlev_avg.dta, replace
 
global outcomes_tables_short "g10mscale_pass m_ever_pass g10mscale g10mz newspedT1 hsgrad_in8 totcred_math anycoll_in8 coll4yr_in8 anycoll coll4yr sems_enroll4yr25   BA earn23_zeroes earn24_zeroes earn25_zeroes earn23_24_25_zeroes  idle_all"
global next_tables_short " m_ever_pass g10mscale g10mz newspedT1 hsgrad_in8 totcred_math anycoll_in8 coll4yr_in8 anycoll coll4yr sems_enroll4yr25   BA earn23_zeroes earn24_zeroes earn25_zeroes earn23_24_25_zeroes  idle_all"


 use data/DD_schlev_avg.dta, clear
 
 *keep only schools at risk under 1997 rules
 *replace cutoffR = .75 if rated_year==1997 
*replace cutoffA = .35 if rated_year==1997

*estimate separately using 1997 rules
g anyLPsample = 1 if p_roundA<=30

g anyRorEsample = 1 if p_roundRorE<=70&p_roundLP==0

foreach s in anyLP anyRorE{
 foreach o of varlist g10mscale_pass g10mscale g10mz hsgrad_in8 totcred_math ///
	 coll4yr_in8  coll4yr BA earn23_zeroes earn24_zeroes ///
		earn25_zeroes earn23_24_25_zeroes  idle_all {
areg `o' `s'_1995  y1995  $demog  if `s'sample==1 , absorb(campus9) cluster(campus9)
		parmest, stars(0.05 0.01) es(N) saving(output\DD_`s'_`o'.dta, replace)		
}
}

*compile
foreach s in anyLP anyRorE{
use output\DD_`s'_g10mscale_pass.dta, clear
	gen outcome = "g10mscale_pass"
		foreach next in g10mscale g10mz hsgrad_in8 totcred_math  coll4yr_in8  coll4yr BA earn23_zeroes earn24_zeroes earn25_zeroes earn23_24_25_zeroes  idle_all {
			append using output\DD_`s'_`next'.dta
			replace outcome = "`next'" if outcome==""
		}
	ren es_1 N
	g model = "DD `s'"
	g filename = "DD_`s'"
	save output\DD_`s'.dta, replace
	}
	
use output\DD_anyLP.dta
append using output\DD_anyRorE.dta
save output\to_ferpa\All_DD_results.dta, replace


}


if "$moremodels" == "1" {
global outcomes_tables_short "g10mscale_pass m_ever_pass g10mscale g10mz newspedT1 hsgrad_in8 totcred_math anycoll_in8 coll4yr_in8 anycoll coll4yr sems_enroll4yr25   BA earn23_zeroes earn24_zeroes earn25_zeroes earn23_24_25_zeroes  idle_all"
global next_tables_short " m_ever_pass g10mscale g10mz newspedT1 hsgrad_in8 totcred_math anycoll_in8 coll4yr_in8 anycoll coll4yr sems_enroll4yr25   BA earn23_zeroes earn24_zeroes earn25_zeroes earn23_24_25_zeroes  idle_all"



****LOWEST GROUP
use  data\0718_13_stuanalysisfile_fullpred.dta, clear
merge m:1 campus9 year_9 using data/lowestgrp.dta, nogen keep(1 3)
bys campus9: egen  cohort_size=count(ssnrep)
foreach v of varlist black hisp frpl white{
bys campus9: egen  `v'_size=sum(`v')
qui su `v'_size, detail
g median_`v'=r(p50)
g above_median_`v'=`v'_size>=median_`v'
g below_median_`v'=`v'_size<median_`v'
}
g lowest_size=.
g above_median_lowest=.
g below_median_lowest=.
foreach v of varlist black hisp frpl white{
	replace lowest_size =`v'_size if `v'_low==1
	replace above_median_lowest =above_median_`v' if `v'_low==1
	replace below_median_lowest =below_median_`v' if `v'_low==1
}
foreach v of varlist above_median_* below_median_* {
	g anyLP_`v'=anyLP*`v'
	g anyRorE_`v'=anyRorE*`v'
}

	foreach o of global outcomes_tables_short {
	*with school FE
		areg `o' $xtest_raw  $demog year9dum*  anyLP_above_median_lowest anyLP_below_median_lowest ///
		anyRorE_above_median_lowest anyRorE_below_median_lowest , ///
		absorb(campus9) cluster(campus9) //vce(bootstrap)	
		parmest, stars(0.05 0.01) es(N) saving(output\simpleFE_groupsize_`o'.dta, replace)

}



****URBANICITY AND PRIOR PASS
use  data\0718_13_stuanalysisfile_fullpred.dta, clear
foreach r of varlist anyLP_urb anyRorE_urb {
	foreach p in fail pass {
		gen byte `r'_`p'=`r'*g8_`p'
}
}
foreach g in  urb  {
	foreach o of global outcomes_tables_short {
	*with school FE
		areg `o' $xtest_raw  $demog year9dum* `g' anyLP_pass anyLP_fail anyLP_`g'_pass anyLP_`g'_fail  anyRorE_pass anyRorE_fail   anyRorE_`g'_pass anyRorE_`g'_fail, ///
			absorb(campus9) cluster(campus9) //vce(bootstrap)	
		parmest, stars(0.05 0.01) es(N) saving(output\math8FE_`g'_`o'.dta, replace)
		}
	}




****CONTROL FOR MATH COURSE TAKING AND SPECIAL ED
**** only do LR outcomes so that controls can mediate
global outcomes_tables_LR " hsgrad_in8  anycoll_in8 coll4yr_in8 anycoll coll4yr sems_enroll4yr25   BA earn23_zeroes earn24_zeroes earn25_zeroes earn23_24_25_zeroes  idle_all"
global next_tables_LR "   anycoll_in8 coll4yr_in8 anycoll coll4yr sems_enroll4yr25   BA earn23_zeroes earn24_zeroes earn25_zeroes earn23_24_25_zeroes  idle_all"

	foreach o of global outcomes_tables_LR {
	*with school FE
		areg `o' $xtest_raw  $demog year9dum* totcred_math anyLP anyRorE, ///
		absorb(campus9) cluster(campus9) //vce(bootstrap)	
		parmest, stars(0.05 0.01) es(N) saving(output\simpleFE_main_controlMATH_`o'.dta, replace)

		areg `o' $xtest_raw  $demog year9dum* newspedT1 anyLP anyRorE, ///
		absorb(campus9) cluster(campus9) //vce(bootstrap)	
		parmest, stars(0.05 0.01) es(N) saving(output\simpleFE_main_controlSPED_`o'.dta, replace)
		}
	
****CUT BY SIZE OF GROUP FALIING
use  data\0718_13_stuanalysisfile_fullpred.dta, clear
bys campus9: egen  cohort_size=count(ssnrep)
bys campus9: egen  fail_size=sum(g8mscale_fail)
bys campus9: gen fail_rate=fail_size/cohort_size

/*

. su fail_rate, det

                          fail_rate
-------------------------------------------------------------
      Percentiles      Smallest
 1%     .0855072              0
 5%     .1401515              0
10%     .1798942              0       Obs              887711
25%     .2376471              0       Sum of Wgt.      887711

50%     .3063241                      Mean           .3268586
                        Largest       Std. Dev.      .1260357
75%     .4076507       .8148148
90%     .5171371       .8148148       Variance        .015885
95%     .5579323       .8148148       Skewness       .4428006
99%     .6318613       .8148148       Kurtosis       2.802572

. tab g8mscale_fail

g8mscale_fa |
         il |      Freq.     Percent        Cum.
------------+-----------------------------------
          0 |    597,555       67.31       67.31
          1 |    290,156       32.69      100.00
------------+-----------------------------------
      Total |    887,711      100.00

	  */
	  
*will try for above/below mean STUDENT LEVEL FAILURE RATE

g hi_fail_rate=fail_rate>=.3269
g lo_fail_rate= fail_rate<.3269

foreach s of varlist anyLP anyRorE anyLP_fail anyLP_pass anyRorE_fail anyRorE_pass {
foreach f of varlist hi_fail_rate lo_fail_rate {
	g `s'_`f' = `s'*`f'
}
}

	foreach o of global outcomes_tables_short {
	*with school FE
		areg `o' $xtest_raw  $demog year9dum*  anyLP_hi_fail_rate anyLP_lo_fail_rate anyRorE_hi_fail_rate anyRorE_lo_fail_rate, ///
		absorb(campus9) cluster(campus9) //vce(bootstrap)	
		parmest, stars(0.05 0.01) es(N) saving(output\simpleFE_main_failrate_`o'.dta, replace)
		
		areg `o' $xtest_raw  $demog year9dum*  anyLP_pass_hi_fail_rate anyLP_pass_lo_fail_rate ///
		 anyLP_fail_hi_fail_rate anyLP_fail_lo_fail_rate ///
		 anyRorE_pass_hi_fail_rate anyRorE_pass_lo_fail_rate ///
		anyRorE_fail_hi_fail_rate anyRorE_fail_lo_fail_rate, ///
		absorb(campus9) cluster(campus9) //vce(bootstrap)	
		parmest, stars(0.05 0.01) es(N) saving(output\math8FE_main_failrate_`o'.dta, replace)
}

*compile
use output\simpleFE_main_failrate_g10mscale_pass.dta, clear
	gen outcome = "g10mscale_pass"
		foreach next of global next_tables_short {
			append using output\simpleFE_main_failrate_`next'.dta
			replace outcome = "`next'" if outcome==""
		}
	g model = "Main results by 8th grade failure rates"
	g filename = "simpleFE_main_failrate"
	foreach next of global outcomes_tables_short {
			append using output\math8FE_main_failrate_`next'.dta
			replace outcome = "`next'" if outcome==""
		}
	replace model = "Prior pass results by 8th grade failure rates" if model==""
	replace filename = "math8_main_failrate"	 if filename==""	
	foreach next of global outcomes_tables_LR {
			append using output\simpleFE_main_controlMATH_`next'.dta
			replace outcome = "`next'" if outcome==""
		}
	replace model = "Main results controlling for math courses" if model==""
	replace filename = "simpleFE_main_controlMATH"	 if filename==""	
	foreach next of global outcomes_tables_LR {
			append using output\simpleFE_main_controlSPED_`next'.dta
			replace outcome = "`next'" if outcome==""
		}
	replace model = "Main results controlling for special ed" if model==""
	replace filename = "simpleFE_main_controlSPED"	 if filename==""	
	foreach next of global outcomes_tables_short {
			append using output\math8FE_urb_`next'.dta
			replace outcome = "`next'" if outcome==""
		}
	replace model = "Prior pass results by urbanicity" if model==""
	replace filename = "math8_urb" if filename==""	
	foreach next of global outcomes_tables_short {
			append using output\simpleFE_groupsize_`next'.dta
			replace outcome = "`next'" if outcome==""
		}
	replace model = "Main results by size of lowest subgroup" if model==""
	replace filename = "simpleFE_groupsize_" if filename==""	

		ren es_1 N

	save output\to_ferpa\new_results_item4_nobootstrap.dta, replace

}

}
